diff options
author | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2012-01-10 12:12:51 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-07 20:08:19 +0100 |
commit | 70966df1be02dd94ecf9a122ff9e4976245aeb92 (patch) | |
tree | 372db90105c34d0c2a72e029f4e087fdc93423b7 /src/quick/items/qquickaccessibleattached.cpp | |
parent | 3f9b58c0890a4263730e2c06b46e7a69d4bfb62d (diff) |
Improve accessibility action support for Qt Quick
Add interface_cast for the action interface.
Implement actions for the following roles:
Button : Press
CheckBox, RadioButton : Press, Check, Uncheck
Slider, Spinbox, Dial, ScrollBar : Increment, Decrement
Change-Id: Ic8e0d17c709ba51655f3f4b699092baf603b6f18
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src/quick/items/qquickaccessibleattached.cpp')
-rw-r--r-- | src/quick/items/qquickaccessibleattached.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/quick/items/qquickaccessibleattached.cpp b/src/quick/items/qquickaccessibleattached.cpp index 177454eedc..1e07d96690 100644 --- a/src/quick/items/qquickaccessibleattached.cpp +++ b/src/quick/items/qquickaccessibleattached.cpp @@ -104,6 +104,7 @@ QT_BEGIN_NAMESPACE } Accessible.name: label.text Accessible.role: Accessible.Button + funtion accessiblePressAction { ... } } \endqml @@ -117,24 +118,19 @@ QT_BEGIN_NAMESPACE \o \row - \o CheckBox - \o checked - \o The check state of the check box. + \o Button + \o function accessiblePressAction + \o Called when the button receives a press action. The implementation should visually simulate a button click and perform the button action. \row - \o RadioButton + \o CheckBox, Radiobutton \o checked - \o The selected state of the radio button. - \row - \o Button - \o checkable - \o Whether the button is checkable. + \o The check state of the check box. Updated on Press, Check and Uncheck actions. \row - \o Button - \o checked - \o Whether the button is checked (only if checkable is true). + \o Slider, SpinBox, Dial, ScrollBar + \o value, minimumValue, maximumValue, stepSize + \o value will be updated on increase and decrase actions, in accordance with the other properties \endtable - */ QQuickAccessibleAttached::QQuickAccessibleAttached(QObject *parent) |