##// END OF EJS Templates
Fixed background gradients direction
Fixed background gradients direction

File last commit:

r616:4f2467dfeb41
r667:d3f5fc49a8b6
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