aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2018-01-23 20:08:47 +0100
committerRobert Loehning <robert.loehning@qt.io>2018-01-25 17:40:42 +0000
commit4ebe9458c7fa639ddc580e67f291b7404ccd296d (patch)
treeebcb900df29068ffb3dcb8b340bcfb043f5d3c79 /tests
parent1838057c222a2fa5c8d21f26dc60e8a65f3b486b (diff)
QmlDesigner: Fix testfile for states
Change-Id: Ib90334d6f566f0ae5d3a5f4961e23af116d34053 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/qml/testfiles_quick2/states.qml17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/manual/qml/testfiles_quick2/states.qml b/tests/manual/qml/testfiles_quick2/states.qml
index b385b00acd..97ff32143a 100644
--- a/tests/manual/qml/testfiles_quick2/states.qml
+++ b/tests/manual/qml/testfiles_quick2/states.qml
@@ -29,6 +29,12 @@ Rectangle {
id: rect
width: 200
height: 200
+ Image {
+ id: image1
+ x: 41
+ y: 46
+ source: "images/qtcreator.png"
+ }
Text {
id: textItem
x: 66
@@ -43,7 +49,7 @@ Rectangle {
color: "blue"
}
PropertyChanges {
- target: text
+ target: textItem
text: "State1"
}
},
@@ -54,16 +60,9 @@ Rectangle {
color: "gray"
}
PropertyChanges {
- target: text
+ target: textItem
text: "State2"
}
}
]
-
- Image {
- id: image1
- x: 41
- y: 46
- source: "images/qtcreator.png"
- }
}