##// END OF EJS Templates
fix compilation error with qpiemodelmapper
Jani Honkonen -
r1234:6ba759c4c3bd
parent child
Show More
@@ -1,57 +1,57
1 1 #ifndef QPIEMODELMAPPER_H
2 2 #define QPIEMODELMAPPER_H
3 3
4 4 #include "qchartglobal.h"
5 5 #include <QObject>
6 6
7 7 class QAbstractItemModel;
8 8
9 9 QTCOMMERCIALCHART_BEGIN_NAMESPACE
10 10
11 11 class QPieModelMapperPrivate;
12 12 class QPieSeries;
13 13
14 14 class QTCOMMERCIALCHART_EXPORT QPieModelMapper : public QObject
15 15 {
16 16 Q_OBJECT
17 17 Q_PROPERTY(int valuesIndex READ valuesIndex WRITE setValuesIndex)
18 18 Q_PROPERTY(int labelsIndex READ labelsIndex WRITE setLabelsIndex)
19 19 Q_PROPERTY(int first READ first WRITE setFirst)
20 20 Q_PROPERTY(int count READ count WRITE setCount)
21 21 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
22 22 Q_ENUMS(Qt::Orientation)
23 23
24 24 public:
25 25 QPieModelMapper(QObject *parent = 0);
26 26
27 27 QAbstractItemModel* model() const;
28 28 void setModel(QAbstractItemModel *model);
29 29
30 30 QPieSeries* series() const;
31 31 void setSeries(QPieSeries *series);
32 32
33 33 int first() const;
34 34 void setFirst(int first);
35 35
36 36 int count() const;
37 37 void setCount(int count);
38 38
39 39 Qt::Orientation orientation() const;
40 40 void setOrientation(Qt::Orientation orientation);
41 41
42 42 int valuesIndex() const;
43 43 void setValuesIndex(int valuesIndex);
44 44
45 45 int labelsIndex() const;
46 46 void setLabelsIndex(int labelsIndex);
47 47
48 48 void reset();
49 49
50 50 private:
51 QScopedPointer<QPieModelMapperPrivate> d_ptr;
51 QPieModelMapperPrivate * const d_ptr;
52 52 Q_DECLARE_PRIVATE(QPieModelMapper)
53 53 };
54 54
55 55 QTCOMMERCIALCHART_END_NAMESPACE
56 56
57 57 #endif // QPIEMODELMAPPER_H
General Comments 0
You need to be logged in to leave comments. Login now