Create accessible interfaces only for items with attached prop
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>
Fri, 23 Mar 2012 16:42:09 +0000 (17:42 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Apr 2012 19:03:04 +0000 (21:03 +0200)
commit80872d0a450d4179e66121d8efe01929ad56fb05
treef00280e8b9b7f8d1d2386f0c41542edef01dc021
parent3bac6c910e87d28ddbbf0779d32bca72bc57dbd4
Create accessible interfaces only for items with attached prop

If the attached property is not found, ignore the item, unless
it is part of the tree. We still create a valid hierarchy this
way, but filter out all irrelevant items. The same goes for
hit-testing.

On the other hand this patch enables the root item to be found
by setting isAccessible on it when updating the flags. Otherwise
the hierarchy is not valid again.

Change-Id: Ied422fd0506d13458757c87a5dad7cdb9d3079bf
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
src/plugins/accessible/quick/main.cpp
src/plugins/accessible/quick/qaccessiblequickview.cpp
src/quick/items/qquickitem.cpp
tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp