1 | // Copyright (C) 2024 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QPIESERIES_P_H |
5 | #define QPIESERIES_P_H |
6 | |
7 | // W A R N I N G |
8 | // ------------- |
9 | // |
10 | // This file is not part of the QtGraphs API. It exists purely as an |
11 | // implementation detail. This header file may change from version to |
12 | // version without notice, or even be removed. |
13 | // |
14 | // We mean it. |
15 | |
16 | #include <private/qabstractseries_p.h> |
17 | #include <QtGraphs/qpieseries.h> |
18 | |
19 | QT_BEGIN_NAMESPACE |
20 | |
21 | class QPieSeriesPrivate : public QAbstractSeriesPrivate |
22 | { |
23 | public: |
24 | QPieSeriesPrivate(); |
25 | ~QPieSeriesPrivate() = default; |
26 | |
27 | void updateData(); |
28 | void updateLabels(); |
29 | void setSizes(qreal innerSize, qreal outerSize); |
30 | |
31 | private: |
32 | QList<QPieSlice *> m_slices; |
33 | qreal m_pieRelativeHorPos; |
34 | qreal m_pieRelativeVerPos; |
35 | qreal m_pieRelativeSize; |
36 | qreal m_pieStartAngle; |
37 | qreal m_pieEndAngle; |
38 | qreal m_sum; |
39 | qreal m_holeRelativeSize; |
40 | Q_DECLARE_PUBLIC(QPieSeries) |
41 | }; |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif // QPIESERIES_P_H |
46 |