##// END OF EJS Templates
Fix bug/typo in chartdataset
Fix bug/typo in chartdataset

File last commit:

r789:a31eb092569c
r828:efd18f904bfe
Show More
declarativepieseries.h
37 lines | 872 B | text/x-c | CLexer
/ qmlplugin / declarativepieseries.h
#ifndef DECLARATIVEPIESERIES_H
#define DECLARATIVEPIESERIES_H
#include "qchartglobal.h"
#include "qpieslice.h"
#include "qpieseries.h"
#include <QDeclarativeItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QChart;
class DeclarativePieSeries : public QPieSeries, public QDeclarativeParserStatus
{
Q_OBJECT
Q_INTERFACES(QDeclarativeParserStatus)
Q_PROPERTY(QDeclarativeListProperty<QPieSlice> slices READ slices)
public:
explicit DeclarativePieSeries(QObject *parent = 0);
QDeclarativeListProperty<QPieSlice> slices();
public: // from QDeclarativeParserStatus
void classBegin();
void componentComplete();
public Q_SLOTS:
static void appendSlice(QDeclarativeListProperty<QPieSlice> *list,
QPieSlice *element);
private:
QChart *m_chart;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // DECLARATIVEPIESERIES_H