Accessibility: childAt returns interface
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>
Tue, 22 Nov 2011 17:08:05 +0000 (18:08 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Dec 2011 11:27:45 +0000 (12:27 +0100)
commit74c9f9d83f9f5cb934d0b62b468c74df5a3b9a0d
treeea5e783b8d025ce2d525dab5c524aaee298dd6b9
parent7e12d2d30f74b5fe1f80fac7192416cf6eb22d4d
Accessibility: childAt returns interface

childAt used to return an integer.
Return an interface instead.

Not requiring a direct child to be returned allows optimizing
by bypassing iterating through the hierarchy of accessibles.
For QtQuick this is the only sensible way of implementing this.

The bridges are still responsible for finding the top-most element.

The default implementation in QAccessibleObject is sufficient
to return direct children. The implementation in
QAccessibleApplication is therfore no longer needed.

Change-Id: Id7100dd5bcc3a98de516a7f4a12eaaa41cb46d26
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
22 files changed:
src/gui/accessible/qaccessible.cpp
src/gui/accessible/qaccessible.h
src/gui/accessible/qaccessibleobject.cpp
src/gui/accessible/qaccessibleobject.h
src/plugins/accessible/widgets/complexwidgets.cpp
src/plugins/accessible/widgets/complexwidgets.h
src/plugins/accessible/widgets/itemviews.cpp
src/plugins/accessible/widgets/itemviews.h
src/plugins/accessible/widgets/qaccessiblemenu.cpp
src/plugins/accessible/widgets/qaccessiblemenu.h
src/plugins/accessible/widgets/qaccessiblewidgets.cpp
src/plugins/accessible/widgets/qaccessiblewidgets.h
src/plugins/platforms/cocoa/qcocoaaccessibilityelement.mm
src/plugins/platforms/cocoa/qnsviewaccessibility.mm
src/plugins/platforms/windows/qwindowsaccessibility.cpp
src/widgets/accessible/qaccessiblewidget.cpp
src/widgets/accessible/qaccessiblewidget.h
tests/auto/other/qaccessibility/tst_qaccessibility.cpp
util/accessibilityinspector/accessibilityinspector.cpp
util/accessibilityinspector/accessibilityinspector.h
util/accessibilityinspector/accessibilityscenemanager.cpp
util/accessibilityinspector/screenreader.cpp