##// END OF EJS Templates
Fixed integrated build on OSX
Fixed integrated build on OSX

File last commit:

r349:7594bc4927de
r721:a5d0004908a0
Show More
declarativelineseries.h
39 lines | 874 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"
#include "scatterelement.h" // TODO: rename header
#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
Q_PROPERTY(QDeclarativeListProperty<ScatterElement> data READ data)
public:
explicit DeclarativeLineSeries(QDeclarativeItem *parent = 0);
QDeclarativeListProperty<ScatterElement> data();
signals:
public slots:
static void appendData(QDeclarativeListProperty<ScatterElement> *list,
ScatterElement *element);
private slots:
void setParentForSeries();
private:
QChart *m_chart;
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 QLineSeries *m_series;
Tero Ahola
Dynamic data for QML pie and line series
r215 QList<ScatterElement *> m_data;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // DECLARATIVELINESERIES_H