aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickrepeater/data/repeater1.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickrepeater/data/repeater1.qml')
-rw-r--r--tests/auto/quick/qquickrepeater/data/repeater1.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickrepeater/data/repeater1.qml b/tests/auto/quick/qquickrepeater/data/repeater1.qml
new file mode 100644
index 0000000000..3e6f4071ff
--- /dev/null
+++ b/tests/auto/quick/qquickrepeater/data/repeater1.qml
@@ -0,0 +1,30 @@
+import QtQuick 2.0
+
+Item {
+ Rectangle {
+ id: container
+ objectName: "container"
+ width: 240
+ height: 320
+ color: "white"
+ Text {
+ text: "Zero"
+ }
+ Repeater {
+ id: repeater
+ objectName: "repeater"
+ width: 240
+ height: 320
+ model: testData
+ Component {
+ Text {
+ y: index*20
+ text: modelData
+ }
+ }
+ }
+ Text {
+ text: "Last"
+ }
+ }
+}