1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // W A R N I N G |
5 | // ------------- |
6 | // |
7 | // This file is not part of the Qt Chart API. It exists purely as an |
8 | // implementation detail. This header file may change from version to |
9 | // version without notice, or even be removed. |
10 | // |
11 | // We mean it. |
12 | |
13 | #ifndef QXYLEGENDMARKER_P_H |
14 | #define QXYLEGENDMARKER_P_H |
15 | |
16 | #include <QtCharts/QChartGlobal> |
17 | #include <private/qlegendmarker_p.h> |
18 | #include <private/legendmarkeritem_p.h> |
19 | #include <QtCharts/QXYSeries> |
20 | #include <QtCharts/private/qchartglobal_p.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class QXYLegendMarker; |
25 | |
26 | class Q_CHARTS_PRIVATE_EXPORT QXYLegendMarkerPrivate : public QLegendMarkerPrivate |
27 | { |
28 | Q_OBJECT |
29 | public: |
30 | explicit QXYLegendMarkerPrivate(QXYLegendMarker *q, QXYSeries *series, QLegend *legend); |
31 | virtual ~QXYLegendMarkerPrivate(); |
32 | |
33 | QAbstractSeries* series() override; |
34 | QObject* relatedObject() override; |
35 | |
36 | public Q_SLOTS: |
37 | void updated() override; |
38 | |
39 | private: |
40 | QXYLegendMarker *q_ptr; |
41 | QXYSeries *m_series; |
42 | |
43 | Q_DECLARE_PUBLIC(QXYLegendMarker) |
44 | }; |
45 | |
46 | QT_END_NAMESPACE |
47 | |
48 | #endif // QXYLEGENDMARKER_P_H |
49 |