aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickaccessible/data
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@qt.io>2019-05-07 14:58:29 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-05-09 06:56:35 +0000
commitd12cc4f6b58ecb5f44458002fe9b74d0c84f10ae (patch)
tree51fa3c077c26c2aad1571673c8d24365d5336e16 /tests/auto/quick/qquickaccessible/data
parent4a4842118d2303a8d851d1d8b85fe182d3fe492a (diff)
Don't overwrite states if role is assigned after a state
We therefore need to keep track of which states have been explicitly set or not in order to know which ones should get initialized with their defaults. Change-Id: I49fdae82288f04ea4f50d45735a93434ac02abec Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickaccessible/data')
-rw-r--r--tests/auto/quick/qquickaccessible/data/text.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickaccessible/data/text.qml b/tests/auto/quick/qquickaccessible/data/text.qml
index 88f292a61f..6daeacfd81 100644
--- a/tests/auto/quick/qquickaccessible/data/text.qml
+++ b/tests/auto/quick/qquickaccessible/data/text.qml
@@ -46,4 +46,15 @@ Item {
text: "A multi-line text edit\nTesting Accessibility."
Accessible.role: Accessible.EditableText
}
+
+ Text {
+ x: 100
+ y: 160
+ width: 100
+ height: 40
+ text : "Hello 3"
+ Accessible.name: text
+ Accessible.description: "description"
+ }
+
}