##// END OF EJS Templates
Fixes All Moudle link...
Fixes All Moudle link * adds main page * adds html templete * adds macros

File last commit:

r215:4c8c373c63a9
r315:0395c45b5375
Show More
declarativelineseries.h
39 lines | 884 B | text/x-c | CLexer
/ qmlplugin / declarativelineseries.h
#ifndef DECLARATIVELINESERIES_H
#define DECLARATIVELINESERIES_H
#include "qchartglobal.h"
#include "scatterelement.h" // TODO: rename header
#include <QDeclarativeItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QChart;
class QLineChartSeries;
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;
QLineChartSeries *m_series;
QList<ScatterElement *> m_data;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // DECLARATIVELINESERIES_H