aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tutorials/extending/chapter5-listproperties/piechart.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/extending/chapter5-listproperties/piechart.h')
-rw-r--r--examples/tutorials/extending/chapter5-listproperties/piechart.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tutorials/extending/chapter5-listproperties/piechart.h b/examples/tutorials/extending/chapter5-listproperties/piechart.h
index 9beabda5f3..6c17bc1258 100644
--- a/examples/tutorials/extending/chapter5-listproperties/piechart.h
+++ b/examples/tutorials/extending/chapter5-listproperties/piechart.h
@@ -48,7 +48,7 @@ class PieSlice;
class PieChart : public QQuickItem
{
Q_OBJECT
- Q_PROPERTY(QDeclarativeListProperty<PieSlice> slices READ slices)
+ Q_PROPERTY(QQmlListProperty<PieSlice> slices READ slices)
//![0]
Q_PROPERTY(QString name READ name WRITE setName)
@@ -61,10 +61,10 @@ public:
void setName(const QString &name);
//![2]
- 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;