diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-12-07 07:48:22 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-02 15:33:52 +0100 |
commit | 27a497b3a7581a0cd76407635afca91d1f42aeef (patch) | |
tree | e4b65e5dcfc9a5be6053c24ec06d56fb82fe4c0d /examples/declarative/calculator | |
parent | 017a82c6702768aed68c34f319fa14da591f3df2 (diff) |
Add accessibility to qml
This consists of two parts:
An attached property for QML items and a plugin for the accessibility framework.
The attached property simply takes care of some properties (name, role)
that are needed in order to expose semantics of the application to
assistive tools.
The plugin exposes the hierarchy of QML items to the
accessibility framework.
Change-Id: I32f5603d0d9549b01b3645b205b710b9801762f7
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'examples/declarative/calculator')
-rw-r--r-- | examples/declarative/calculator/Core/Button.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/declarative/calculator/Core/Button.qml b/examples/declarative/calculator/Core/Button.qml index 9080c2472e..6222ac09c4 100644 --- a/examples/declarative/calculator/Core/Button.qml +++ b/examples/declarative/calculator/Core/Button.qml @@ -47,6 +47,10 @@ BorderImage { property alias operation: buttonText.text property string color: "" + Accessible.name: operation + Accessible.description: "This button does " + operation + Accessible.role: Accessible.Button + signal clicked source: "images/button-" + color + ".png"; clip: true |