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
19QT_BEGIN_NAMESPACE
20
21class QPieSeriesPrivate : public QAbstractSeriesPrivate
22{
23public:
24 QPieSeriesPrivate();
25 ~QPieSeriesPrivate() = default;
26
27 void updateData();
28 void updateLabels();
29 void setSizes(qreal innerSize, qreal outerSize);
30
31private:
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
43QT_END_NAMESPACE
44
45#endif // QPIESERIES_P_H
46

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtgraphs/src/graphs2d/piechart/qpieseries_p.h