summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/repeater/basic3.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-10-29 03:31:53 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-10-29 03:31:53 (GMT)
commit0f09354da8595b39685076f5da79f6820eb6705a (patch)
tree41acdf13ec37a62806a36779ff0468fb8aada884 /tests/auto/declarative/qmlvisual/repeater/basic3.qml
parent8daae0d2ba5d3aca1d0ab640f30afe8ddc1146f7 (diff)
downloadQt-0f09354da8595b39685076f5da79f6820eb6705a.zip
Qt-0f09354da8595b39685076f5da79f6820eb6705a.tar.gz
Qt-0f09354da8595b39685076f5da79f6820eb6705a.tar.bz2
Clean up repeater visual tests
Replace text with coloured rectangles, for more cross platform stability Task-number: QTBUG-14792
Diffstat (limited to 'tests/auto/declarative/qmlvisual/repeater/basic3.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/basic3.qml28
1 files changed, 16 insertions, 12 deletions
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic3.qml b/tests/auto/declarative/qmlvisual/repeater/basic3.qml
index a296801..0193db3 100644
--- a/tests/auto/declarative/qmlvisual/repeater/basic3.qml
+++ b/tests/auto/declarative/qmlvisual/repeater/basic3.qml
@@ -1,27 +1,31 @@
import QtQuick 1.0
Rectangle {
- color: "blue"
- width: 300
- height: 200
+ color: "white"
+ width: 120
+ height: 240
+ id: page
ListModel {
- id: dataSource
+ id: model
ListElement {
- name: "January"
+ name: "palegoldenrod"
}
ListElement {
- name: "February"
+ name: "lightsteelblue"
}
}
- Row {
- Repeater {
- model: dataSource
+ Column{
+ Repeater{
+ model: model
delegate: Rectangle {
- color: "red"
+ color: "thistle"
width: 100
height: 100
- Text {
- text: name
+ Rectangle {
+ anchors.centerIn: parent
+ width: 60
+ height: 60
+ color: name
}
}
}