qchartseries.h
37 lines
| 772 B
| text/x-c
|
CLexer
/ src / qchartseries.h
|
r23 | #ifndef QCHARTSERIES_H | ||
#define QCHARTSERIES_H | ||||
|
r30 | #include "qchartglobal.h" | ||
|
r23 | #include <QObject> | ||
|
r71 | #include <QAbstractItemModel> | ||
|
r23 | |||
|
r30 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
|
r23 | |||
|
r30 | class QTCOMMERCIALCHART_EXPORT QChartSeries : public QObject | ||
|
r23 | { | ||
|
r71 | Q_OBJECT | ||
|
r23 | public: | ||
|
r30 | enum QChartSeriesType { | ||
|
r120 | SeriesTypeLine, | ||
|
r309 | SeriesTypeArea, | ||
|
r56 | SeriesTypeBar, | ||
|
r94 | SeriesTypeStackedBar, | ||
|
r101 | SeriesTypePercentBar, | ||
|
r51 | SeriesTypePie, | ||
|
r309 | SeriesTypeScatter, | ||
SeriesTypeSpline | ||||
|
r30 | }; | ||
|
r23 | |||
protected: | ||||
|
r309 | QChartSeries(QObject *parent = 0) : QObject(parent) {} | ||
|
r23 | |||
public: | ||||
|
r309 | virtual ~QChartSeries() {} | ||
|
r23 | virtual QChartSeriesType type() const = 0; | ||
|
r309 | // TODO | ||
|
r175 | virtual bool setModel(QAbstractItemModel* /*model*/) { return false; } | ||
|
r23 | }; | ||
|
r30 | QTCOMMERCIALCHART_END_NAMESPACE | ||
|
r23 | |||
#endif | ||||