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

File last commit:

r215:4c8c373c63a9
r721:a5d0004908a0
Show More
declarativescatterseries.h
41 lines | 895 B | text/x-c | CLexer
/ qmlplugin / declarativescatterseries.h
Tero Ahola
Proposal for QML data API
r196 #ifndef DECLARATIVESCATTERSERIES_H
#define DECLARATIVESCATTERSERIES_H
#include "qchartglobal.h"
#include "scatterelement.h"
#include <QDeclarativeItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QChart;
class QScatterSeries;
class DeclarativeScatterSeries : public QDeclarativeItem
{
Q_OBJECT
Q_PROPERTY(QDeclarativeListProperty<ScatterElement> data READ data)
public:
explicit DeclarativeScatterSeries(QDeclarativeItem *parent = 0);
QDeclarativeListProperty<ScatterElement> data();
signals:
public slots:
static void appendData(QDeclarativeListProperty<ScatterElement> *list,
ScatterElement *element);
private slots:
void setParentForSeries();
public:
void initSeries();
QChart *m_chart;
QScatterSeries *m_series;
QList<ScatterElement *> m_data;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // DECLARATIVESCATTERSERIES_H