##// END OF EJS Templates
replaced qbarcategory with qstringlist
replaced qbarcategory with qstringlist

File last commit:

r360:6630f89603b4
r377:a61a7697be62
Show More
qseries.h
37 lines | 737 B | text/x-c | CLexer
#ifndef QSERIES_H
#define QSERIES_H
#include "qchartglobal.h"
#include <QObject>
#include <QAbstractItemModel>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QSeries : public QObject
{
Q_OBJECT
public:
enum QSeriesType {
SeriesTypeLine,
SeriesTypeArea,
SeriesTypeBar,
SeriesTypeStackedBar,
SeriesTypePercentBar,
SeriesTypePie,
SeriesTypeScatter,
SeriesTypeSpline
};
protected:
QSeries(QObject *parent = 0) : QObject(parent) {}
public:
virtual ~QSeries() {}
virtual QSeriesType type() const = 0;
// TODO
virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif