aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/quick/painteditem/main.qml2
-rw-r--r--examples/quick/painteditem/painteditem.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/painteditem/main.qml b/examples/quick/painteditem/main.qml
index 182fdc986..3b5999ae0 100644
--- a/examples/quick/painteditem/main.qml
+++ b/examples/quick/painteditem/main.qml
@@ -62,7 +62,7 @@ Item {
anchors.top: parent.top
id: balloonView
delegate: TextBalloon {
- anchors.right: index % 2 == 0 ? undefined : parent.right
+ anchors.right: index % 2 == 0 ? undefined : balloonView.contentItem.right
height: 60
rightAligned: index % 2 == 0 ? false : true
width: balloonWidth
diff --git a/examples/quick/painteditem/painteditem.py b/examples/quick/painteditem/painteditem.py
index ff744063a..4d49690d8 100644
--- a/examples/quick/painteditem/painteditem.py
+++ b/examples/quick/painteditem/painteditem.py
@@ -60,7 +60,7 @@ class TextBalloon(QQuickPaintedItem):
return self._rightAligned
@rightAligned.setter
- def rightAlignedSet(self, value):
+ def rightAligned(self, value):
self._rightAligned = value
self.rightAlignedChanged.emit()