declarativescatterseries.h
44 lines
| 1.0 KiB
| text/x-c
|
CLexer
/ qmlplugin / declarativescatterseries.h
Tero Ahola
|
r196 | #ifndef DECLARATIVESCATTERSERIES_H | ||
#define DECLARATIVESCATTERSERIES_H | ||||
#include "qchartglobal.h" | ||||
Tero Ahola
|
r722 | #include "declarativexypoint.h" | ||
Tero Ahola
|
r196 | #include <QDeclarativeItem> | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class QChart; | ||||
class QScatterSeries; | ||||
Tero Ahola
|
r726 | class DeclarativeScatterSeries : public QDeclarativeItem | ||
Tero Ahola
|
r196 | { | ||
Q_OBJECT | ||||
Tero Ahola
|
r726 | Q_PROPERTY(QDeclarativeListProperty<DeclarativeXyPoint> points READ points) | ||
Tero Ahola
|
r196 | |||
public: | ||||
explicit DeclarativeScatterSeries(QDeclarativeItem *parent = 0); | ||||
Tero Ahola
|
r722 | ~DeclarativeScatterSeries(); | ||
public: // from QDeclarativeParserStatus | ||||
void componentComplete(); | ||||
public: | ||||
Tero Ahola
|
r726 | QDeclarativeListProperty<DeclarativeXyPoint> points(); | ||
Tero Ahola
|
r196 | |||
signals: | ||||
public slots: | ||||
Tero Ahola
|
r726 | static void appendPoints(QDeclarativeListProperty<DeclarativeXyPoint> *list, | ||
Tero Ahola
|
r722 | DeclarativeXyPoint *element); | ||
Tero Ahola
|
r196 | |||
private slots: | ||||
public: | ||||
Tero Ahola
|
r722 | QChart *m_chart; // not owned | ||
QScatterSeries *m_series; // not owned | ||||
Tero Ahola
|
r726 | QList<DeclarativeXyPoint *> m_points; // not owned | ||
Tero Ahola
|
r196 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // DECLARATIVESCATTERSERIES_H | ||||