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

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