##// END OF EJS Templates
Revert "Theme change now affects also XY series"...
Revert "Theme change now affects also XY series" This reverts commit 91322882c9fdeca5ce2206f5b5c1fb3b4a2a2b7c.

File last commit:

r616:4f2467dfeb41
r644:7baa2715935c
Show More
qseries.h
48 lines | 1000 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;
QString name() { return QString("TODO: Name QSeries"); }
// TODO
virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
void setTitle(QString title) { m_title = title; }
QString title() { return m_title; }
protected:
QAbstractItemModel* m_model;
private:
QString m_title;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif