aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/repeater/basic1.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlvisual/repeater/basic1.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/basic1.qml31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic1.qml b/tests/auto/declarative/qmlvisual/repeater/basic1.qml
new file mode 100644
index 0000000000..5d994b96a0
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/basic1.qml
@@ -0,0 +1,31 @@
+import QtQuick 1.0
+
+Rectangle {
+ color: "white"
+ width: 120
+ height: 240
+ id: page
+ Column{
+ Repeater{
+ delegate: Rectangle {
+ color: "thistle"
+ width: 100
+ height: 100
+ Rectangle {
+ anchors.centerIn: parent
+ width: 60
+ height: 60
+ color: name
+ }
+ }
+ model: ListModel {
+ ListElement {
+ name: "palegoldenrod"
+ }
+ ListElement {
+ name: "lightsteelblue"
+ }
+ }
+ }
+ }
+}