summaryrefslogtreecommitdiffstats
path: root/doc
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
parenta40db2cd7d5e57e74aa4280e69d99cd252e2d460 (diff)
downloadQt-5f9091771eaa26db5ad35e4788c13ac011512b61.zip
Qt-5f9091771eaa26db5ad35e4788c13ac011512b61.tar.gz
Qt-5f9091771eaa26db5ad35e4788c13ac011512b61.tar.bz2
Doc
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/pics/repeater-index.pngbin0 -> 3024 bytes
-rw-r--r--doc/src/snippets/declarative/repeater-index.qml15
2 files changed, 15 insertions, 0 deletions
diff --git a/doc/src/declarative/pics/repeater-index.png b/doc/src/declarative/pics/repeater-index.png
new file mode 100644
index 0000000..3dbe6d0
--- /dev/null
+++ b/doc/src/declarative/pics/repeater-index.png
Binary files differ
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]
+}
+