| 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 QCHARTVIEW_P_H |
| 14 | #define QCHARTVIEW_P_H |
| 15 | |
| 16 | #include <QtCharts/QChartView> |
| 17 | #include <QtCharts/private/qchartglobal_p.h> |
| 18 | |
| 19 | QT_BEGIN_NAMESPACE |
| 20 | class QGraphicsScene; |
| 21 | QT_END_NAMESPACE |
| 22 | |
| 23 | QT_BEGIN_NAMESPACE |
| 24 | |
| 25 | class QChart; |
| 26 | class ChartPresenter; |
| 27 | class QChartView; |
| 28 | |
| 29 | class Q_CHARTS_EXPORT QChartViewPrivate |
| 30 | { |
| 31 | public: |
| 32 | explicit QChartViewPrivate(QChartView *q, QChart *chart = 0); |
| 33 | ~QChartViewPrivate(); |
| 34 | void setChart(QChart *chart); |
| 35 | void resize(); |
| 36 | |
| 37 | protected: |
| 38 | QChartView *q_ptr; |
| 39 | |
| 40 | public: |
| 41 | QGraphicsScene *m_scene; |
| 42 | QChart *m_chart; |
| 43 | QPoint m_rubberBandOrigin; |
| 44 | #ifndef QT_NO_RUBBERBAND |
| 45 | QRubberBand *m_rubberBand; |
| 46 | #endif |
| 47 | QChartView::RubberBands m_rubberBandFlags; |
| 48 | }; |
| 49 | |
| 50 | QT_END_NAMESPACE |
| 51 | #endif |
| 52 |
