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