aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tutorials/extending/chapter6-plugins/piechart.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/extending/chapter6-plugins/piechart.h')
-rw-r--r--examples/tutorials/extending/chapter6-plugins/piechart.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tutorials/extending/chapter6-plugins/piechart.h b/examples/tutorials/extending/chapter6-plugins/piechart.h
index fe6b96afdc..2ee8108784 100644
--- a/examples/tutorials/extending/chapter6-plugins/piechart.h
+++ b/examples/tutorials/extending/chapter6-plugins/piechart.h
@@ -47,7 +47,7 @@ class PieSlice;
class PieChart : public QQuickItem
{
Q_OBJECT
- Q_PROPERTY(QDeclarativeListProperty<PieSlice> slices READ slices)
+ Q_PROPERTY(QQmlListProperty<PieSlice> slices READ slices)
Q_PROPERTY(QString name READ name WRITE setName)
public:
@@ -56,10 +56,10 @@ public:
QString name() const;
void setName(const QString &name);
- QDeclarativeListProperty<PieSlice> slices();
+ QQmlListProperty<PieSlice> slices();
private:
- static void append_slice(QDeclarativeListProperty<PieSlice> *list, PieSlice *slice);
+ static void append_slice(QQmlListProperty<PieSlice> *list, PieSlice *slice);
QString m_name;
QList<PieSlice *> m_slices;