summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/repeater/basic1/basic1.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/visual/repeater/basic1/basic1.qml')
-rw-r--r--tests/auto/declarative/visual/repeater/basic1/basic1.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/repeater/basic1/basic1.qml b/tests/auto/declarative/visual/repeater/basic1/basic1.qml
new file mode 100644
index 0000000..c803de9
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/basic1/basic1.qml
@@ -0,0 +1,28 @@
+import Qt 4.6
+
+Rect {
+ color: "blue"
+ width: 300
+ height: 200
+ id: Page
+ HorizontalLayout {
+ Repeater {
+ component: Rect {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ dataSource: ListModel {
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ }
+ }
+}