| 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 QBARLEGENDMARKER_P_H |
| 14 | #define QBARLEGENDMARKER_P_H |
| 15 | |
| 16 | #include <QtCharts/QChartGlobal> |
| 17 | #include <private/qlegendmarker_p.h> |
| 18 | #include <private/legendmarkeritem_p.h> |
| 19 | #include <QtCharts/QAbstractBarSeries> |
| 20 | #include <QtCharts/QBarSet> |
| 21 | #include <QtCharts/private/qchartglobal_p.h> |
| 22 | |
| 23 | QT_BEGIN_NAMESPACE |
| 24 | |
| 25 | class QBarLegendMarker; |
| 26 | |
| 27 | class Q_CHARTS_EXPORT QBarLegendMarkerPrivate : public QLegendMarkerPrivate |
| 28 | { |
| 29 | Q_OBJECT |
| 30 | public: |
| 31 | explicit QBarLegendMarkerPrivate(QBarLegendMarker *q, QAbstractBarSeries *series, QBarSet *barset, QLegend *legend); |
| 32 | virtual ~QBarLegendMarkerPrivate(); |
| 33 | |
| 34 | QAbstractBarSeries* series() override; |
| 35 | QObject* relatedObject() override; |
| 36 | |
| 37 | public Q_SLOTS: |
| 38 | void updated() override; |
| 39 | |
| 40 | private: |
| 41 | QBarLegendMarker *q_ptr; |
| 42 | QAbstractBarSeries *m_series; |
| 43 | QBarSet *m_barset; |
| 44 | |
| 45 | Q_DECLARE_PUBLIC(QBarLegendMarker) |
| 46 | }; |
| 47 | |
| 48 | QT_END_NAMESPACE |
| 49 | |
| 50 | #endif // QBARLEGENDMARKER_P_H |
| 51 |
