tests/auto/declarative/qmlvisual/repeater/basic2.qml
changeset 30 5dc02b23752f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/auto/declarative/qmlvisual/repeater/basic2.qml	Tue Jul 06 15:10:48 2010 +0300
@@ -0,0 +1,31 @@
+import Qt 4.7
+
+Rectangle {
+    color: "blue"
+    width: 300
+    height: 200
+    Component {
+        id: delegate
+        Rectangle {
+            color: "red"
+            width: 100
+            height: 100
+            Text {
+                text: name
+            }
+        }
+    }
+    Row {
+        Repeater {
+            delegate: delegate
+            model: ListModel {
+                ListElement {
+                    name: "January"
+                }
+                ListElement {
+                    name: "February"
+                }
+            }
+        }
+    }
+}