##// END OF EJS Templates
vs20xx compile fix for QChartViewPrivate
Jani Honkonen -
r1296:49c8e7b086a7
parent child
Show More
@@ -1,72 +1,72
1 1 /****************************************************************************
2 2 **
3 3 ** Copyright (C) 2012 Digia Plc
4 4 ** All rights reserved.
5 5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 6 **
7 7 ** This file is part of the Qt Commercial Charts Add-on.
8 8 **
9 9 ** $QT_BEGIN_LICENSE$
10 10 ** Licensees holding valid Qt Commercial licenses may use this file in
11 11 ** accordance with the Qt Commercial License Agreement provided with the
12 12 ** Software or, alternatively, in accordance with the terms contained in
13 13 ** a written agreement between you and Digia.
14 14 **
15 15 ** If you have questions regarding the use of this file, please use
16 16 ** contact form at http://qt.digia.com
17 17 ** $QT_END_LICENSE$
18 18 **
19 19 ****************************************************************************/
20 20
21 21 #ifndef QCHARTVIEW_H
22 22 #define QCHARTVIEW_H
23 23
24 24 #include <QAxis>
25 25 #include <QAbstractSeries>
26 26 #include <QChart>
27 27 #include <QGraphicsView>
28 28
29 29 class QGraphicsScene;
30 30 class QRubberBand;
31 31
32 32 QTCOMMERCIALCHART_BEGIN_NAMESPACE
33 33
34 struct QChartViewPrivate;
34 class QChartViewPrivate;
35 35
36 36 class QTCOMMERCIALCHART_EXPORT QChartView : public QGraphicsView
37 37 {
38 38 Q_OBJECT
39 39 Q_ENUMS(RubberBand)
40 40 public:
41 41
42 42 enum RubberBand{
43 43 NoRubberBand = 0x0,
44 44 VerticalRubberBand = 0x1,
45 45 HorizonalRubberBand = 0x2,
46 46 RectangleRubberBand = 0x3
47 47 };
48 48
49 49 Q_DECLARE_FLAGS(RubberBands, RubberBand)
50 50
51 51 explicit QChartView(QWidget *parent = 0);
52 52 explicit QChartView(QChart *chart,QWidget *parent = 0);
53 53 ~QChartView();
54 54
55 55 void setRubberBand(const RubberBands& rubberBands);
56 56 RubberBands rubberBand() const;
57 57 QChart* chart() const;
58 58
59 59 protected:
60 60 void resizeEvent(QResizeEvent *event);
61 61 void mousePressEvent(QMouseEvent *event);
62 62 void mouseMoveEvent(QMouseEvent *event);
63 63 void mouseReleaseEvent(QMouseEvent *event);
64 64
65 65 protected:
66 66 QScopedPointer<QChartViewPrivate> d_ptr;
67 67 Q_DISABLE_COPY(QChartView)
68 68 };
69 69
70 70 QTCOMMERCIALCHART_END_NAMESPACE
71 71
72 72 #endif // QCHARTWIDGET_H
General Comments 0
You need to be logged in to leave comments. Login now