@@ -1,33 +1,33 | |||||
1 | #ifndef QCHARTAXISCATEGORIES_H_ |
|
1 | #ifndef QCHARTAXISCATEGORIES_H_ | |
2 | #define QCHARTAXISCATEGORIES_H_ |
|
2 | #define QCHARTAXISCATEGORIES_H_ | |
3 | #include "qchartglobal.h" |
|
3 | #include "qchartglobal.h" | |
4 |
|
4 | |||
5 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
5 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
6 |
|
6 | |||
7 | class QChartAxisCategories : public QObject |
|
7 | class QTCOMMERCIALCHART_EXPORT QChartAxisCategories : public QObject | |
8 | { |
|
8 | { | |
9 | Q_OBJECT |
|
9 | Q_OBJECT | |
10 | private: |
|
10 | private: | |
11 | QChartAxisCategories(); |
|
11 | QChartAxisCategories(); | |
12 | public: |
|
12 | public: | |
13 | ~QChartAxisCategories(); |
|
13 | ~QChartAxisCategories(); | |
14 |
|
14 | |||
15 | void insert(qreal value,QString label); |
|
15 | void insert(qreal value,QString label); | |
16 | void remove(qreal value); |
|
16 | void remove(qreal value); | |
17 | void clear(); |
|
17 | void clear(); | |
18 | int count(); |
|
18 | int count(); | |
19 |
|
19 | |||
20 | //internal signal |
|
20 | //internal signal | |
21 | signals: |
|
21 | signals: | |
22 | void updated(); |
|
22 | void updated(); | |
23 |
|
23 | |||
24 | private: |
|
24 | private: | |
25 | QMap<qreal,QString> m_map; |
|
25 | QMap<qreal,QString> m_map; | |
26 |
|
26 | |||
27 | friend class QChartAxis; |
|
27 | friend class QChartAxis; | |
28 | }; |
|
28 | }; | |
29 |
|
29 | |||
30 |
|
30 | |||
31 | QTCOMMERCIALCHART_END_NAMESPACE |
|
31 | QTCOMMERCIALCHART_END_NAMESPACE | |
32 |
|
32 | |||
33 | #endif /* QCHARTAXISCATEGORIES_H_ */ |
|
33 | #endif /* QCHARTAXISCATEGORIES_H_ */ |
General Comments 0
You need to be logged in to leave comments.
Login now