| 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 | |
| 13 | QT_BEGIN_NAMESPACE |
| 14 | |
| 15 | class QAreaLegendMarkerPrivate; |
| 16 | |
| 17 | class Q_CHARTS_EXPORT QAreaLegendMarker : public QLegendMarker |
| 18 | { |
| 19 | Q_OBJECT |
| 20 | |
| 21 | public: |
| 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 | |
| 30 | protected: |
| 31 | QAreaLegendMarker(QAreaLegendMarkerPrivate &d, QObject *parent = nullptr); |
| 32 | |
| 33 | private: |
| 34 | Q_DECLARE_PRIVATE(QAreaLegendMarker) |
| 35 | Q_DISABLE_COPY(QAreaLegendMarker) |
| 36 | |
| 37 | }; |
| 38 | |
| 39 | QT_END_NAMESPACE |
| 40 | |
| 41 | #endif // QT_CONFIG(charts_area_chart) |
| 42 | #endif // QAREALEGENDMARKER_H |
| 43 |
