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

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