Use queryAccessibleInterface instead of new QAccessibleQuickItem
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Thu, 19 Jan 2012 11:01:55 +0000 (12:01 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Jan 2012 10:04:17 +0000 (11:04 +0100)
commit96d69b0fe409de354d369489a284677c30378787
tree6698fc369c5997e0aa06047ee84101d23ec6071d
parent126ada14b21f62d9349756cc6a3ef835d40a3e7d
Use queryAccessibleInterface instead of new QAccessibleQuickItem

In some cases this could prevent us from actually returning the
expected QAccessibleQuickItemValueInterface.
This is also more future-proof in case we add more QAI subclasses.

Change-Id: Id66dc21418671a3045d93c0a44dc74aa0aff30af
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/plugins/accessible/quick/qaccessiblequickitem.cpp