##// END OF EJS Templates
Revert "Fixes line uder grid issue"...
Revert "Fixes line uder grid issue" This reverts commit 3ea3ba4a33950ea7420e16913d228ed53fe566c3.

File last commit:

r175:05f9f3d08ff3
r191:0b54368f72bb
Show More
qchartseries.h
45 lines | 1.0 KiB | text/x-c | CLexer
#ifndef QCHARTSERIES_H
#define QCHARTSERIES_H
#include "qchartglobal.h"
#include <QObject>
#include <QAbstractItemModel>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QChartSeries : public QObject
{
Q_OBJECT
public:
enum QChartSeriesType {
SeriesTypeInvalid = -1,
SeriesTypeLine,
// SeriesTypeArea,
SeriesTypeBar,
SeriesTypeStackedBar,
SeriesTypePercentBar,
SeriesTypePie,
SeriesTypeScatter
// SeriesTypeSpline
};
protected:
QChartSeries(QObject *parent = 0):QObject(parent){};
public:
virtual ~QChartSeries(){};
// Pure virtual
virtual QChartSeriesType type() const = 0;
virtual bool setData(QList<qreal> /*data*/) { return false; }
virtual bool setData(QList<qreal> /*x*/, QList<qreal> /*y*/){ return false; }
// Prototype for data model. TODO: remove the other setData methods and use something like this for now?
virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif