barchartseries.h
34 lines
| 670 B
| text/x-c
|
CLexer
sauimone
|
r56 | #ifndef BARCHARTSERIES_H | ||
#define BARCHARTSERIES_H | ||||
#include <QList> | ||||
sauimone
|
r71 | #include <QAbstractItemModel> | ||
sauimone
|
r126 | #include "barchartseriesbase.h" | ||
sauimone
|
r56 | |||
sauimone
|
r74 | class BarGroup; | ||
sauimone
|
r56 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
// Container for series | ||||
sauimone
|
r126 | class QTCOMMERCIALCHART_EXPORT BarChartSeries : public BarChartSeriesBase | ||
sauimone
|
r56 | { | ||
sauimone
|
r71 | Q_OBJECT | ||
sauimone
|
r56 | public: | ||
sauimone
|
r169 | BarChartSeries(QBarCategory &category, QObject* parent=0); | ||
sauimone
|
r56 | |||
sauimone
|
r126 | // from BarChartSeriesBase | ||
sauimone
|
r56 | virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeBar; } | ||
sauimone
|
r171 | void addBarSet(QBarSet &set); | ||
void removeBarSet(QBarSet &set); | ||||
public Q_SLOTS: | ||||
sauimone
|
r56 | private: | ||
sauimone
|
r74 | BarGroup* mBarGroup; | ||
sauimone
|
r56 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // BARCHARTSERIES_H | ||||