##// END OF EJS Templates
Fixed bug in setting chart theme...
Fixed bug in setting chart theme The bug was that if you first add a series, then change theme and then restore the original theme, the color of the series was changed even though it should have been restored to match the original color.

File last commit:

r309:7038f6582ad4
r312:0677c9dd6d92
Show More
qchartseries.h
37 lines | 772 B | 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 {
SeriesTypeLine,
SeriesTypeArea,
SeriesTypeBar,
SeriesTypeStackedBar,
SeriesTypePercentBar,
SeriesTypePie,
SeriesTypeScatter,
SeriesTypeSpline
};
protected:
QChartSeries(QObject *parent = 0) : QObject(parent) {}
public:
virtual ~QChartSeries() {}
virtual QChartSeriesType type() const = 0;
// TODO
virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif