aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/painteditem/textballoons
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2012-02-29 18:51:23 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-20 05:37:59 +0100
commit738d3a99db5aeed0fccbef78aeec0a98d426fbad (patch)
tree8edf154718b6b214bd5a1a9b0ad12c4b916884d1 /examples/quick/painteditem/textballoons
parent8e8738df1454434a3e2b77f65564ffa148d22a2c (diff)
Add docs for PaintedItem examples
No launcher, because they're C++ examples Change-Id: Icff2ad31c65d5a878c3818d54ed81cf0d6aa664b Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'examples/quick/painteditem/textballoons')
-rw-r--r--examples/quick/painteditem/textballoons/textballoons.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/quick/painteditem/textballoons/textballoons.qml b/examples/quick/painteditem/textballoons/textballoons.qml
index b00ce2bfed..d5151c9553 100644
--- a/examples/quick/painteditem/textballoons/textballoons.qml
+++ b/examples/quick/painteditem/textballoons/textballoons.qml
@@ -42,9 +42,14 @@
import QtQuick 2.0
import TextBalloonPlugin 1.0
+/*!
+ \title QtQuick Examples - Painted Text Balloons
+ \example quick/painteditem/textballoons
+ \brief This is a simple example that draws text balloons using QPainter
+*/
Item {
height: 480
- width: 640
+ width: 320
//! [0]
ListModel {
@@ -53,7 +58,7 @@ Item {
balloonWidth: 200
}
ListElement {
- balloonWidth: 350
+ balloonWidth: 120
}
}
@@ -95,7 +100,7 @@ Item {
anchors.fill: parent
hoverEnabled: true
onClicked: {
- balloonModel.append({"balloonWidth": Math.floor(Math.random() * 300 + 100)})
+ balloonModel.append({"balloonWidth": Math.floor(Math.random() * 200 + 100)})
balloonView.positionViewAtIndex(balloonView.count -1, ListView.End)
}
onEntered: {