diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2012-01-04 14:37:27 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-10 13:47:53 +0100 |
commit | 1b4897f0710921fb0a55932a7fb6f17a45989c41 (patch) | |
tree | 312393c117c688a1feb6be19e8f55030f118c404 /src/quick/items/qquickaccessibleattached.cpp | |
parent | 6ffcd091511bed98fbc698262d42597722910a15 (diff) |
Accessibility: Checked state for check boxes and radio buttons.
Also adapt to new api in qtbase - state is now a bit field.
Change-Id: Ia4266f3d5094a6c32e0ace3499910b57c3e71c25
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/quick/items/qquickaccessibleattached.cpp')
-rw-r--r-- | src/quick/items/qquickaccessibleattached.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/quick/items/qquickaccessibleattached.cpp b/src/quick/items/qquickaccessibleattached.cpp index f7faf8f540..213920bb4d 100644 --- a/src/quick/items/qquickaccessibleattached.cpp +++ b/src/quick/items/qquickaccessibleattached.cpp @@ -102,6 +102,35 @@ QT_BEGIN_NAMESPACE Accessible.role: Accessible.Button } \endqml + + Some roles have special semantics. + In order to implement check boxes for example a "checked" property is expected. + + \table + \header + \o \bold {Role} + \o \bold {Expected property} + \o + + \row + \o CheckBox + \o checked + \o The check state of the check box. + \row + \o RadioButton + \o checked + \o The selected state of the radio button. + \row + \o Button + \o checkable + \o Whether the button is checkable. + \row + \o Button + \o checked + \o Whether the button is checked (only if checkable is true). + + \endtable + */ QQuickAccessibleAttached::QQuickAccessibleAttached(QObject *parent) |