##// END OF EJS Templates
Title and name of QSeries replaced with name
Title and name of QSeries replaced with name

File last commit:

r722:3c81c15bc4ba
r731:90a16700f8b3
Show More
declarativelineseries.h
39 lines | 875 B | text/x-c | CLexer
/ qmlplugin / declarativelineseries.h
Tero Ahola
Dynamic data for QML pie and line series
r215 #ifndef DECLARATIVELINESERIES_H
#define DECLARATIVELINESERIES_H
#include "qchartglobal.h"
Tero Ahola
d
r722 #include "declarativexypoint.h"
Tero Ahola
Dynamic data for QML pie and line series
r215 #include <QDeclarativeItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QChart;
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 class QLineSeries;
Tero Ahola
Dynamic data for QML pie and line series
r215
class DeclarativeLineSeries : public QDeclarativeItem
{
Q_OBJECT
Tero Ahola
d
r722 Q_PROPERTY(QDeclarativeListProperty<DeclarativeXyPoint> data READ data)
Tero Ahola
Dynamic data for QML pie and line series
r215
public:
explicit DeclarativeLineSeries(QDeclarativeItem *parent = 0);
Tero Ahola
d
r722 QDeclarativeListProperty<DeclarativeXyPoint> data();
Tero Ahola
Dynamic data for QML pie and line series
r215
signals:
public slots:
Tero Ahola
d
r722 static void appendData(QDeclarativeListProperty<DeclarativeXyPoint> *list,
DeclarativeXyPoint *element);
Tero Ahola
Dynamic data for QML pie and line series
r215
private slots:
void setParentForSeries();
private:
QChart *m_chart;
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 QLineSeries *m_series;
Tero Ahola
d
r722 QList<DeclarativeXyPoint *> m_data;
Tero Ahola
Dynamic data for QML pie and line series
r215 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // DECLARATIVELINESERIES_H