summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-10-28 05:55:59 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-10-28 05:55:59 (GMT)
commit55a3fcd7b2fe9cd43f3c0c20d75aaef056a05c5b (patch)
treea659b792178e6ee620f3d4c4218e518e4b158f64 /doc/src/snippets
parentf0f2941d6dccd4bd402861c01797bb210c516962 (diff)
parent44be8cc3bb1aebd47f75dcf9cae54884322e1955 (diff)
downloadQt-55a3fcd7b2fe9cd43f3c0c20d75aaef056a05c5b.zip
Qt-55a3fcd7b2fe9cd43f3c0c20d75aaef056a05c5b.tar.gz
Qt-55a3fcd7b2fe9cd43f3c0c20d75aaef056a05c5b.tar.bz2
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/declarative/repeater-index.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/repeater-index.qml b/doc/src/snippets/declarative/repeater-index.qml
new file mode 100644
index 0000000..9063967
--- /dev/null
+++ b/doc/src/snippets/declarative/repeater-index.qml
@@ -0,0 +1,15 @@
+import Qt 4.6
+
+Rectangle {
+ width: 50; height: childrenRect.height; color: "white"
+
+//! [0]
+ Column {
+ Repeater {
+ model: 10
+ Text { text: "I'm item " + index }
+ }
+ }
+//! [0]
+}
+