#ifndef DECLARATIVELINESERIES_H #define DECLARATIVELINESERIES_H #include "qchartglobal.h" #include "declarativexypoint.h" #include QTCOMMERCIALCHART_BEGIN_NAMESPACE class QChart; class QLineSeries; class DeclarativeLineSeries : public QDeclarativeItem { Q_OBJECT Q_PROPERTY(QDeclarativeListProperty data READ data) public: explicit DeclarativeLineSeries(QDeclarativeItem *parent = 0); QDeclarativeListProperty data(); signals: public slots: static void appendData(QDeclarativeListProperty *list, DeclarativeXyPoint *element); private slots: void setParentForSeries(); private: QChart *m_chart; QLineSeries *m_series; QList m_data; }; QTCOMMERCIALCHART_END_NAMESPACE #endif // DECLARATIVELINESERIES_H