##// END OF EJS Templates
Change make doc to make docs
Change make doc to make docs

File last commit:

r215:4c8c373c63a9
r725:4ecc3dffc588
Show More
declarativepieseries.h
39 lines | 814 B | text/x-c | CLexer
/ qmlplugin / declarativepieseries.h
Tero Ahola
Dynamic data for QML pie and line series
r215 #ifndef DECLARATIVEPIESERIES_H
#define DECLARATIVEPIESERIES_H
#include "qchartglobal.h"
#include "qpieslice.h"
#include <QDeclarativeItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QPieSeries;
class QChart;
class DeclarativePieSeries : public QDeclarativeItem
{
Q_OBJECT
Q_PROPERTY(QDeclarativeListProperty<QPieSlice> data READ data)
public:
explicit DeclarativePieSeries(QDeclarativeItem *parent = 0);
QDeclarativeListProperty<QPieSlice> data();
signals:
public slots:
static void appendData(QDeclarativeListProperty<QPieSlice> *list,
QPieSlice *element);
private slots:
void setParentForSeries();
private:
QChart *m_chart;
QPieSeries *m_series;
QList<QPieSlice *> m_data;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // DECLARATIVEPIESERIES_H