qchartaxiscategories.h
34 lines
| 622 B
| text/x-c
|
CLexer
|
r445 | #ifndef QCHARTAXISCATEGORIES_H_ | ||
#define QCHARTAXISCATEGORIES_H_ | ||||
|
r697 | #include <qchartglobal.h> | ||
|
r445 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
|
r448 | class QTCOMMERCIALCHART_EXPORT QChartAxisCategories : public QObject | ||
|
r445 | { | ||
Q_OBJECT | ||||
private: | ||||
QChartAxisCategories(); | ||||
public: | ||||
~QChartAxisCategories(); | ||||
void insert(qreal value,QString label); | ||||
void remove(qreal value); | ||||
|
r497 | QString label(qreal value) const; | ||
|
r445 | void clear(); | ||
int count(); | ||||
//internal signal | ||||
signals: | ||||
void updated(); | ||||
private: | ||||
QMap<qreal,QString> m_map; | ||||
friend class QChartAxis; | ||||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif /* QCHARTAXISCATEGORIES_H_ */ | ||||