summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/repeater/basic4.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-09-24 04:13:15 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-09-24 04:18:58 (GMT)
commita1c1ff8561e8aefe4b4d09af1273bcb98c192772 (patch)
tree822b629abfce43ca3a068c3850a138f529f2180c /tests/auto/declarative/visual/repeater/basic4.qml
parent09b117a97edd0791fb2c30f7a73704c926327ba3 (diff)
downloadQt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.zip
Qt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.tar.gz
Qt-a1c1ff8561e8aefe4b4d09af1273bcb98c192772.tar.bz2
Update visual autotests and visual autotest infrastructure
Diffstat (limited to 'tests/auto/declarative/visual/repeater/basic4.qml')
-rw-r--r--tests/auto/declarative/visual/repeater/basic4.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/repeater/basic4.qml b/tests/auto/declarative/visual/repeater/basic4.qml
new file mode 100644
index 0000000..6172493
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/basic4.qml
@@ -0,0 +1,34 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 300
+ height: 200
+ id: Page
+ ListModel {
+ id: DataSource
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ Component {
+ id: Delegate
+ Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ }
+ Row {
+ Repeater {
+ model: DataSource
+ delegate: Delegate
+ }
+ }
+}