aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/tutorials/extending/chapter5-listproperties/piechart.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-02-12 09:15:25 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-12 09:19:45 +0100
commit1e55fa7d4a9688274a097021d3f44e729f7d0a59 (patch)
treeb9c558fc968efff45fc07966ac96944d8d997f2a /examples/quick/tutorials/extending/chapter5-listproperties/piechart.cpp
parent5b8f77970d4cd269ac459bc0cc88b7a3efe6c858 (diff)
Fix extending example.
The antialiasing was broken due to wrong flag being used and that the bounds were outside the texture and chapter 5 and 6 did not compile. Change-Id: Ib7c4d8c276a3cc5583ff794e10ff539720857e0c Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'examples/quick/tutorials/extending/chapter5-listproperties/piechart.cpp')
-rw-r--r--examples/quick/tutorials/extending/chapter5-listproperties/piechart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/tutorials/extending/chapter5-listproperties/piechart.cpp b/examples/quick/tutorials/extending/chapter5-listproperties/piechart.cpp
index 2cfbe4de1b..9fb61d9cd8 100644
--- a/examples/quick/tutorials/extending/chapter5-listproperties/piechart.cpp
+++ b/examples/quick/tutorials/extending/chapter5-listproperties/piechart.cpp
@@ -58,7 +58,7 @@ void PieChart::setName(const QString &name)
//![0]
QQmlListProperty<PieSlice> PieChart::slices()
{
- return QQmlListProperty<PieSlice>(this, 0, &PieChart::append_slice);
+ return QQmlListProperty<PieSlice>(this, 0, &PieChart::append_slice, 0, 0, 0);
}
void PieChart::append_slice(QQmlListProperty<PieSlice> *list, PieSlice *slice)