diff options
Diffstat (limited to 'examples/declarative/tutorials/extending/chapter6-plugins')
-rw-r--r-- | examples/declarative/tutorials/extending/chapter6-plugins/app.qml | 10 | ||||
-rw-r--r-- | examples/declarative/tutorials/extending/chapter6-plugins/piechart.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/tutorials/extending/chapter6-plugins/app.qml b/examples/declarative/tutorials/extending/chapter6-plugins/app.qml index 684e416e..e72451e7 100644 --- a/examples/declarative/tutorials/extending/chapter6-plugins/app.qml +++ b/examples/declarative/tutorials/extending/chapter6-plugins/app.qml @@ -47,17 +47,17 @@ Item { width: 100; height: 100 slices: [ - PieSlice { + PieSlice { anchors.fill: parent color: "red" - fromAngle: 0; angleSpan: 110 + fromAngle: 0; angleSpan: 110 }, - PieSlice { + PieSlice { anchors.fill: parent color: "black" - fromAngle: 110; angleSpan: 50 + fromAngle: 110; angleSpan: 50 }, - PieSlice { + PieSlice { anchors.fill: parent color: "blue" fromAngle: 160; angleSpan: 100 diff --git a/examples/declarative/tutorials/extending/chapter6-plugins/piechart.cpp b/examples/declarative/tutorials/extending/chapter6-plugins/piechart.cpp index ed611b73..b17c9955 100644 --- a/examples/declarative/tutorials/extending/chapter6-plugins/piechart.cpp +++ b/examples/declarative/tutorials/extending/chapter6-plugins/piechart.cpp @@ -55,7 +55,7 @@ void PieChart::setName(const QString &name) m_name = name; } -QDeclarativeListProperty<PieSlice> PieChart::slices() +QDeclarativeListProperty<PieSlice> PieChart::slices() { return QDeclarativeListProperty<PieSlice>(this, 0, &PieChart::append_slice); } |