declarativesplineseries.h
30 lines
| 807 B
| text/x-c
|
CLexer
/ qmlplugin / declarativesplineseries.h
Tero Ahola
|
r732 | #ifndef DECLARATIVESPLINESERIES_H | ||
#define DECLARATIVESPLINESERIES_H | ||||
#include "qchartglobal.h" | ||||
Tero Ahola
|
r789 | #include "qsplineseries.h" | ||
Tero Ahola
|
r732 | #include "declarativexyseries.h" | ||
Tero Ahola
|
r789 | #include <QDeclarativeParserStatus> | ||
Tero Ahola
|
r732 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
Tero Ahola
|
r789 | class DeclarativeSplineSeries : public QSplineSeries, public DeclarativeXySeries | ||
Tero Ahola
|
r732 | { | ||
Q_OBJECT | ||||
Tero Ahola
|
r789 | Q_PROPERTY(QDeclarativeListProperty<DeclarativeXyPoint> points READ points) | ||
Tero Ahola
|
r732 | |||
public: | ||||
Tero Ahola
|
r789 | explicit DeclarativeSplineSeries(QObject *parent = 0); | ||
public: | ||||
Tero Ahola
|
r793 | virtual void componentComplete(); | ||
Tero Ahola
|
r789 | QDeclarativeListProperty<DeclarativeXyPoint> points(); | ||
Tero Ahola
|
r793 | public Q_SLOTS: | ||
Tero Ahola
|
r789 | static void appendPoints(QDeclarativeListProperty<DeclarativeXyPoint> *list, | ||
DeclarativeXyPoint *element); | ||||
}; | ||||
Tero Ahola
|
r732 | |||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // DECLARATIVESPLINESERIES_H | ||||