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