Use QGuiApp::activeWindow()->accessibleRoot() to find focus child
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Thu, 22 Sep 2011 15:21:36 +0000 (17:21 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 3 Oct 2011 07:56:09 +0000 (09:56 +0200)
commita06cb56dde937c67f9d5baf870d6327d0d3c4c78
tree057ed3fe6262be58829cb9b95e2bad36caf2a7b3
parent2d8863bfa0d47737f8bbc0433866e66aae38d60b
Use QGuiApp::activeWindow()->accessibleRoot() to find focus child

queryAccessibleInterface will return 0 if the object is a QWindow, so
it would never find the focus child.

Change-Id: Ib5bb6a0e4ffbf1b8491b71d1ba5a039e7a6584e0
Reviewed-on: http://codereview.qt-project.org/5842
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/gui/accessible/qaccessibleobject.cpp