diff options
Diffstat (limited to 'examples/tutorials/extending/chapter6-plugins/piechart.cpp')
-rw-r--r-- | examples/tutorials/extending/chapter6-plugins/piechart.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tutorials/extending/chapter6-plugins/piechart.cpp b/examples/tutorials/extending/chapter6-plugins/piechart.cpp index 2a8f40289e..b188e39d81 100644 --- a/examples/tutorials/extending/chapter6-plugins/piechart.cpp +++ b/examples/tutorials/extending/chapter6-plugins/piechart.cpp @@ -55,12 +55,12 @@ void PieChart::setName(const QString &name) m_name = name; } -QDeclarativeListProperty<PieSlice> PieChart::slices() +QQmlListProperty<PieSlice> PieChart::slices() { - return QDeclarativeListProperty<PieSlice>(this, 0, &PieChart::append_slice); + return QQmlListProperty<PieSlice>(this, 0, &PieChart::append_slice); } -void PieChart::append_slice(QDeclarativeListProperty<PieSlice> *list, PieSlice *slice) +void PieChart::append_slice(QQmlListProperty<PieSlice> *list, PieSlice *slice) { PieChart *chart = qobject_cast<PieChart *>(list->object); if (chart) { |