summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/repeater.qml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/repeater.qml')
-rw-r--r--doc/src/snippets/declarative/repeater.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/repeater.qml b/doc/src/snippets/declarative/repeater.qml
new file mode 100644
index 0000000..f8ac856
--- /dev/null
+++ b/doc/src/snippets/declarative/repeater.qml
@@ -0,0 +1,16 @@
+import Qt 4.6
+
+Rectangle {
+ width: 220; height: 20; color: "white"
+
+//! [0]
+ Row {
+ Rectangle { width: 10; height: 20; color: "red" }
+ Repeater {
+ model: 10
+ Rectangle { width: 20; height: 20; radius: 10; color: "green" }
+ }
+ Rectangle { width: 10; height: 20; color: "blue" }
+ }
+//! [0]
+}