##// END OF EJS Templates
Added QML api for bar series
Added QML api for bar series

File last commit:

r349:7594bc4927de
r646:a47b376c6f77
Show More
declarativelineseries.h
39 lines | 874 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 QLineSeries;
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;
QLineSeries *m_series;
QList<ScatterElement *> m_data;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // DECLARATIVELINESERIES_H