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 QCHART_P_H |
14 | #define QCHART_P_H |
15 | |
16 | #include <QtCharts/QChartGlobal> |
17 | #include <QtCharts/QChart> |
18 | #include <QtCharts/private/qchartglobal_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class ChartThemeManager; |
23 | class ChartPresenter; |
24 | class QLegend; |
25 | class ChartDataSet; |
26 | |
27 | class Q_CHARTS_PRIVATE_EXPORT QChartPrivate |
28 | { |
29 | |
30 | public: |
31 | QChartPrivate(QChart *q, QChart::ChartType type); |
32 | ~QChartPrivate(); |
33 | QChart *q_ptr; |
34 | QLegend *m_legend; |
35 | ChartDataSet *m_dataset; |
36 | ChartPresenter *m_presenter; |
37 | ChartThemeManager *m_themeManager; |
38 | QChart::ChartType m_type; |
39 | |
40 | static QPen &defaultPen(); |
41 | static QBrush &defaultBrush(); |
42 | static QFont &defaultFont(); |
43 | |
44 | void init(); |
45 | void zoomIn(qreal factor); |
46 | void zoomOut(qreal factor); |
47 | void zoomIn(const QRectF &rect); |
48 | void zoomReset(); |
49 | bool isZoomed(); |
50 | void scroll(qreal dx, qreal dy); |
51 | }; |
52 | |
53 | QT_END_NAMESPACE |
54 | #endif |
55 |