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
19QT_BEGIN_NAMESPACE
20class QGraphicsScene;
21QT_END_NAMESPACE
22
23QT_BEGIN_NAMESPACE
24
25class QChart;
26class ChartPresenter;
27class QChartView;
28
29class Q_CHARTS_PRIVATE_EXPORT QChartViewPrivate
30{
31public:
32 explicit QChartViewPrivate(QChartView *q, QChart *chart = 0);
33 ~QChartViewPrivate();
34 void setChart(QChart *chart);
35 void resize();
36
37protected:
38 QChartView *q_ptr;
39
40public:
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
50QT_END_NAMESPACE
51#endif
52

source code of qtcharts/src/charts/qchartview_p.h