summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/repeater-index.qml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/repeater-index.qml')
-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]
+}
+