summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-27 10:03:35 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-27 10:03:35 (GMT)
commit5f9091771eaa26db5ad35e4788c13ac011512b61 (patch)
tree1618f8ee918cf39bfd24172fec2bdad3d8dea550 /doc/src/snippets
parenta40db2cd7d5e57e74aa4280e69d99cd252e2d460 (diff)
downloadQt-5f9091771eaa26db5ad35e4788c13ac011512b61.zip
Qt-5f9091771eaa26db5ad35e4788c13ac011512b61.tar.gz
Qt-5f9091771eaa26db5ad35e4788c13ac011512b61.tar.bz2
Doc
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]
+}
+