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