##// 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:

r215:4c8c373c63a9
r312:0677c9dd6d92
Show More
declarativescatterseries.h
41 lines | 895 B | text/x-c | CLexer
/ qmlplugin / declarativescatterseries.h
#ifndef DECLARATIVESCATTERSERIES_H
#define DECLARATIVESCATTERSERIES_H
#include "qchartglobal.h"
#include "scatterelement.h"
#include <QDeclarativeItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QChart;
class QScatterSeries;
class DeclarativeScatterSeries : public QDeclarativeItem
{
Q_OBJECT
Q_PROPERTY(QDeclarativeListProperty<ScatterElement> data READ data)
public:
explicit DeclarativeScatterSeries(QDeclarativeItem *parent = 0);
QDeclarativeListProperty<ScatterElement> data();
signals:
public slots:
static void appendData(QDeclarativeListProperty<ScatterElement> *list,
ScatterElement *element);
private slots:
void setParentForSeries();
public:
void initSeries();
QChart *m_chart;
QScatterSeries *m_series;
QList<ScatterElement *> m_data;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // DECLARATIVESCATTERSERIES_H