diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-02-06 15:59:52 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-07 10:48:17 +0100 |
commit | 73afeab85fea60e2ce3f19b47becffc1e45a7165 (patch) | |
tree | 20ea1d3bfd664170f34fe6bafb4b5aad7c725a2f | |
parent | 7297525af092b3109761567063aac5680f24475b (diff) | |
download | qtquickcontrols-73afeab85fea60e2ce3f19b47becffc1e45a7165.tar.gz |
Accessibility improvements
[ChangeLog][QtQuickControls] Accessibility improved: ComboBox is labeled
properly, check and radio boxes report their state correctly
Change-Id: Ia9fe88f032a627c839bd3ef3aec4e2e6cb4517a7
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
-rw-r--r-- | src/controls/ComboBox.qml | 2 | ||||
-rw-r--r-- | src/controls/Private/AbstractCheckable.qml | 2 | ||||
-rw-r--r-- | src/controls/Private/BasicButton.qml | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml index 6d8e2268..21d473d6 100644 --- a/src/controls/ComboBox.qml +++ b/src/controls/ComboBox.qml @@ -299,7 +299,9 @@ Control { activeFocusOnTab: true + Accessible.name: editable ? editText : currentText Accessible.role: Accessible.ComboBox + Accessible.editable: editable MouseArea { id: mouseArea diff --git a/src/controls/Private/AbstractCheckable.qml b/src/controls/Private/AbstractCheckable.qml index 858569e8..1d69d869 100644 --- a/src/controls/Private/AbstractCheckable.qml +++ b/src/controls/Private/AbstractCheckable.qml @@ -84,6 +84,8 @@ Control { This property is \c true if the control is checked. */ property bool checked: false + Accessible.checked: checked + Accessible.checkable: true /*! This property is \c true if the control takes the focus when it is diff --git a/src/controls/Private/BasicButton.qml b/src/controls/Private/BasicButton.qml index 4c1eeb04..44ec2110 100644 --- a/src/controls/Private/BasicButton.qml +++ b/src/controls/Private/BasicButton.qml @@ -71,6 +71,7 @@ Control { The default value is \c false. */ property bool checkable: false + Accessible.checkable: checkable /*! This property holds whether the button is checked. @@ -78,6 +79,7 @@ Control { The default value is \c false. */ property bool checked: false + Accessible.checked: checked /*! This property holds the ExclusiveGroup that the button belongs to. |