summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/repeater/basic4.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/basic4.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/basic4.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/repeater/basic4.qml28
1 files changed, 16 insertions, 12 deletions
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic4.qml b/tests/auto/declarative/qmlvisual/repeater/basic4.qml
index fa85835..c7c0d29 100644
--- a/tests/auto/declarative/qmlvisual/repeater/basic4.qml
+++ b/tests/auto/declarative/qmlvisual/repeater/basic4.qml
@@ -1,32 +1,36 @@
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"
}
}
Component {
id: delegate
Rectangle {
- color: "red"
+ color: "thistle"
width: 100
height: 100
- Text {
- text: name
+ Rectangle {
+ anchors.centerIn: parent
+ width: 60
+ height: 60
+ color: name
}
}
}
- Row {
- Repeater {
- model: dataSource
+ Column{
+ Repeater{
+ model: model
delegate: delegate
}
}