1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
5#ifndef QAREALEGENDMARKER_H
6#define QAREALEGENDMARKER_H
7
8#include <QtCharts/QChartGlobal>
9#if QT_CONFIG(charts_area_chart)
10#include <QtCharts/QLegendMarker>
11#include <QtCharts/QAreaSeries>
12
13QT_BEGIN_NAMESPACE
14
15class QAreaLegendMarkerPrivate;
16
17class Q_CHARTS_EXPORT QAreaLegendMarker : public QLegendMarker
18{
19 Q_OBJECT
20
21public:
22 explicit QAreaLegendMarker(QAreaSeries *series, QLegend *legend, QObject *parent = nullptr);
23 virtual ~QAreaLegendMarker();
24
25 LegendMarkerType type() override { return LegendMarkerTypeArea; }
26
27 // Related series
28 QAreaSeries* series() override;
29
30protected:
31 QAreaLegendMarker(QAreaLegendMarkerPrivate &d, QObject *parent = nullptr);
32
33private:
34 Q_DECLARE_PRIVATE(QAreaLegendMarker)
35 Q_DISABLE_COPY(QAreaLegendMarker)
36
37};
38
39QT_END_NAMESPACE
40
41#endif // QT_CONFIG(charts_area_chart)
42#endif // QAREALEGENDMARKER_H
43

source code of qtcharts/src/charts/legend/qarealegendmarker.h