aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickaccessible/data
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-01-10 16:36:05 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-27 16:00:13 +0100
commitf0595284cbe85b5716daaf307154c1ed7e660a26 (patch)
treea3a0c1347130b1b6c8418780d16d2d7f308ebf69 /tests/auto/quick/qquickaccessible/data
parenta1ee538395198f998a73f3ef7545392aeb680900 (diff)
Accessibility: add states to QQuickAccessibleAttached
This makes it possible to set the state of accessible objects in qml. Change-Id: Ide70b885dac8fed180d2b221540cf2b699ac78ff Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'tests/auto/quick/qquickaccessible/data')
-rw-r--r--tests/auto/quick/qquickaccessible/data/checkbuttons.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickaccessible/data/checkbuttons.qml b/tests/auto/quick/qquickaccessible/data/checkbuttons.qml
index 22cdad1377..8769c04095 100644
--- a/tests/auto/quick/qquickaccessible/data/checkbuttons.qml
+++ b/tests/auto/quick/qquickaccessible/data/checkbuttons.qml
@@ -6,6 +6,7 @@ Item {
// button, not checkable
Rectangle {
+ objectName: "button1"
y: 20
width: 100; height: 20
Accessible.role : Accessible.Button
@@ -13,34 +14,44 @@ Item {
// button, checkable, not checked
Rectangle {
+ objectName: "button2"
y: 40
width: 100; height: 20
Accessible.role : Accessible.Button
+ Accessible.checkable: checkable
+ Accessible.checked: checked
property bool checkable: true
property bool checked: false
}
// button, checkable, checked
Rectangle {
+ objectName: "button3"
y: 60
width: 100; height: 20
Accessible.role : Accessible.Button
+ Accessible.checkable: checkable
+ Accessible.checked: checked
property bool checkable: true
property bool checked: true
}
// check box, checked
Rectangle {
+ objectName: "checkbox1"
y: 80
width: 100; height: 20
Accessible.role : Accessible.CheckBox
+ Accessible.checked: checked
property bool checked: true
}
// check box, not checked
Rectangle {
+ objectName: "checkbox2"
y: 100
width: 100; height: 20
Accessible.role : Accessible.CheckBox
+ Accessible.checked: checked
property bool checked: false
}
}