aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/repeater
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlvisual/repeater')
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/basic1.qml31
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/basic2.qml35
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/basic3.qml33
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/basic4.qml37
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/data/basic1.0.pngbin0 -> 707 bytes
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/data/basic1.qml11
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/data/basic2.0.pngbin0 -> 707 bytes
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/data/basic2.qml11
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/data/basic3.0.pngbin0 -> 707 bytes
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/data/basic3.qml11
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/data/basic4.0.pngbin0 -> 707 bytes
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/data/basic4.qml11
12 files changed, 180 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"
+ }
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic2.qml b/tests/auto/declarative/qmlvisual/repeater/basic2.qml
new file mode 100644
index 0000000000..ea14e92e21
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/basic2.qml
@@ -0,0 +1,35 @@
+import QtQuick 1.0
+
+Rectangle {
+ color: "white"
+ width: 120
+ height: 240
+ id: page
+ Component {
+ id: delegate
+ Rectangle {
+ color: "thistle"
+ width: 100
+ height: 100
+ Rectangle {
+ anchors.centerIn: parent
+ width: 60
+ height: 60
+ color: name
+ }
+ }
+ }
+ Column{
+ Repeater{
+ delegate: delegate
+ model: ListModel {
+ ListElement {
+ name: "palegoldenrod"
+ }
+ ListElement {
+ name: "lightsteelblue"
+ }
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic3.qml b/tests/auto/declarative/qmlvisual/repeater/basic3.qml
new file mode 100644
index 0000000000..0193db30c0
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/basic3.qml
@@ -0,0 +1,33 @@
+import QtQuick 1.0
+
+Rectangle {
+ color: "white"
+ width: 120
+ height: 240
+ id: page
+ ListModel {
+ id: model
+ ListElement {
+ name: "palegoldenrod"
+ }
+ ListElement {
+ name: "lightsteelblue"
+ }
+ }
+ Column{
+ Repeater{
+ model: model
+ delegate: Rectangle {
+ color: "thistle"
+ width: 100
+ height: 100
+ Rectangle {
+ anchors.centerIn: parent
+ width: 60
+ height: 60
+ color: name
+ }
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic4.qml b/tests/auto/declarative/qmlvisual/repeater/basic4.qml
new file mode 100644
index 0000000000..c7c0d29682
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/basic4.qml
@@ -0,0 +1,37 @@
+import QtQuick 1.0
+
+Rectangle {
+ color: "white"
+ width: 120
+ height: 240
+ id: page
+ ListModel {
+ id: model
+ ListElement {
+ name: "palegoldenrod"
+ }
+ ListElement {
+ name: "lightsteelblue"
+ }
+ }
+ Component {
+ id: delegate
+ Rectangle {
+ color: "thistle"
+ width: 100
+ height: 100
+ Rectangle {
+ anchors.centerIn: parent
+ width: 60
+ height: 60
+ color: name
+ }
+ }
+ }
+ Column{
+ Repeater{
+ model: model
+ delegate: delegate
+ }
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/repeater/data/basic1.0.png b/tests/auto/declarative/qmlvisual/repeater/data/basic1.0.png
new file mode 100644
index 0000000000..3e8043a685
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/data/basic1.0.png
Binary files differ
diff --git a/tests/auto/declarative/qmlvisual/repeater/data/basic1.qml b/tests/auto/declarative/qmlvisual/repeater/data/basic1.qml
new file mode 100644
index 0000000000..aad4858ca4
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/data/basic1.qml
@@ -0,0 +1,11 @@
+import Qt.VisualTest 4.7
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ image: "basic1.0.png"
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/repeater/data/basic2.0.png b/tests/auto/declarative/qmlvisual/repeater/data/basic2.0.png
new file mode 100644
index 0000000000..3e8043a685
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/data/basic2.0.png
Binary files differ
diff --git a/tests/auto/declarative/qmlvisual/repeater/data/basic2.qml b/tests/auto/declarative/qmlvisual/repeater/data/basic2.qml
new file mode 100644
index 0000000000..373ad27cb3
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/data/basic2.qml
@@ -0,0 +1,11 @@
+import Qt.VisualTest 4.7
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ image: "basic2.0.png"
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/repeater/data/basic3.0.png b/tests/auto/declarative/qmlvisual/repeater/data/basic3.0.png
new file mode 100644
index 0000000000..3e8043a685
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/data/basic3.0.png
Binary files differ
diff --git a/tests/auto/declarative/qmlvisual/repeater/data/basic3.qml b/tests/auto/declarative/qmlvisual/repeater/data/basic3.qml
new file mode 100644
index 0000000000..f5dbf65a43
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/data/basic3.qml
@@ -0,0 +1,11 @@
+import Qt.VisualTest 4.7
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ image: "basic3.0.png"
+ }
+}
diff --git a/tests/auto/declarative/qmlvisual/repeater/data/basic4.0.png b/tests/auto/declarative/qmlvisual/repeater/data/basic4.0.png
new file mode 100644
index 0000000000..3e8043a685
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/data/basic4.0.png
Binary files differ
diff --git a/tests/auto/declarative/qmlvisual/repeater/data/basic4.qml b/tests/auto/declarative/qmlvisual/repeater/data/basic4.qml
new file mode 100644
index 0000000000..5e494d13a7
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/repeater/data/basic4.qml
@@ -0,0 +1,11 @@
+import Qt.VisualTest 4.7
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ image: "basic4.0.png"
+ }
+}