aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickaccessible/data/statictext.qml
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2019-05-06 16:03:37 +0200
committerJan Arve Sæther <jan-arve.saether@qt.io>2019-05-07 12:53:25 +0000
commit4a4842118d2303a8d851d1d8b85fe182d3fe492a (patch)
treed6730afb592bd109ee63e112e120c5f82d10bce6 /tests/auto/quick/qquickaccessible/data/statictext.qml
parent3df85008591dffc64427095b022421469cb9a866 (diff)
Accessibility: Make sure StaticText is marked read-only
Test more of the text properties. This is still very incomplete, but a small step forward. Also make sure that editable text reports the editable state. Fixes: QTBUG-75002 Change-Id: I9e43c980d8fa91671acb4e40e5d9162854884ee7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickaccessible/data/statictext.qml')
-rw-r--r--tests/auto/quick/qquickaccessible/data/statictext.qml31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/auto/quick/qquickaccessible/data/statictext.qml b/tests/auto/quick/qquickaccessible/data/statictext.qml
deleted file mode 100644
index 1092f33daf..0000000000
--- a/tests/auto/quick/qquickaccessible/data/statictext.qml
+++ /dev/null
@@ -1,31 +0,0 @@
-import QtQuick 2.0
-
-Item {
- width: 400
- height: 400
- Accessible.name: "root"
- Accessible.role: Accessible.Client
-
- Text {
- x: 100
- y: 20
- width: 200
- height: 50
- text : "Hello Accessibility"
-
- // Setting any value of the attached property
- // makes an item accessible.
- Accessible.name: text
- }
-
- Text {
- x: 100
- y: 40
- width: 100
- height: 40
- text : "Hello 2"
- Accessible.role: Accessible.StaticText
- Accessible.name: "The Hello 2 accessible text"
- Accessible.description: "A text description"
- }
-}