Accessibility: childAt_helper descends too far.
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Thu, 19 Jan 2012 07:02:09 +0000 (08:02 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Mar 2012 20:20:31 +0000 (21:20 +0100)
commit6b87a9cfe51f7ad4e12aca59fdcb0ed242e47e90
tree19d5f279be54fe49013950281cc3e7ecff6e8444
parent16e29f30e3483568a36dba7b37520ea1645d9a2e
Accessibility: childAt_helper descends too far.

Recursive hit-testing using childAt_helper must stop
when it hits a leaf accessibility item. This leaf item
might not be a leaf item in Qt Quick - a button contains
text and mouse area items not visible to the accessibility
system for example.

Get the accessible interface and check if it has
children before recursing to the child items.

Change-Id: I2cc286cde4bce6b4ca340e8a1819edc5f84006a5
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/plugins/accessible/quick/qaccessiblequickview.cpp