##// END OF EJS Templates
minor code review issues. indent, spaces, brackets etc.
minor code review issues. indent, spaces, brackets etc.

File last commit:

r731:90a16700f8b3
r743:e20e9148b1b0
Show More
qseries.h
46 lines | 931 B | text/x-c | CLexer
#ifndef QSERIES_H
#define QSERIES_H
#include <qchartglobal.h>
#include <QObject>
#include <QAbstractItemModel>
#include <QPen>
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) {m_model = NULL;}
public:
virtual ~QSeries() {}
virtual QSeriesType type() const = 0;
// TODO
virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
void setName(QString name) { m_name = name; }
QString name() { return m_name; }
protected:
QAbstractItemModel* m_model;
private:
QString m_name;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif