declarativexyseries.h
35 lines
| 847 B
| text/x-c
|
CLexer
/ qmlplugin / declarativexyseries.h
|
r732 | #ifndef DECLARATIVE_XY_SERIES_H | ||
#define DECLARATIVE_XY_SERIES_H | ||||
#include "qchartglobal.h" | ||||
#include "declarativexypoint.h" | ||||
|
r789 | #include <QDeclarativeParserStatus> | ||
#include <QDeclarativeListProperty> | ||||
|
r732 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class QChart; | ||||
|
r789 | class DeclarativeXySeries : public QDeclarativeParserStatus | ||
|
r732 | { | ||
|
r789 | Q_INTERFACES(QDeclarativeParserStatus) | ||
|
r732 | |||
public: | ||||
|
r789 | explicit DeclarativeXySeries(); | ||
|
r732 | ~DeclarativeXySeries(); | ||
public: // from QDeclarativeParserStatus | ||||
|
r793 | virtual void classBegin(); | ||
virtual void componentComplete() = 0; | ||||
|
r732 | |||
public: | ||||
|
r793 | virtual QDeclarativeListProperty<DeclarativeXyPoint> points() = 0; | ||
|
r732 | |||
|
r775 | public Q_SLOTS: | ||
|
r732 | static void appendPoints(QDeclarativeListProperty<DeclarativeXyPoint> *list, | ||
|
r789 | DeclarativeXyPoint *element); | ||
|
r732 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // DECLARATIVE_XY_SERIES_H | ||||