From 27a497b3a7581a0cd76407635afca91d1f42aeef Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 7 Dec 2011 07:48:22 +0100 Subject: Add accessibility to qml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/qtquick1/util/qdeclarativeview.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/qtquick1/util/qdeclarativeview.h') diff --git a/src/qtquick1/util/qdeclarativeview.h b/src/qtquick1/util/qdeclarativeview.h index 4249d26980..9780d7a413 100644 --- a/src/qtquick1/util/qdeclarativeview.h +++ b/src/qtquick1/util/qdeclarativeview.h @@ -57,6 +57,7 @@ class QGraphicsObject; class QDeclarativeEngine; class QDeclarativeContext; class QDeclarativeError; +class QDeclarativeItem; QT_MODULE(Declarative) @@ -113,6 +114,9 @@ protected: private: Q_DISABLE_COPY(QDeclarativeView) Q_DECLARE_PRIVATE(QDeclarativeView) +// Accessibility support: + friend class QAccessibleDeclarativeView; + QDeclarativeItem *accessibleRootItem() const; }; QT_END_NAMESPACE -- cgit v1.2.3