Make sure the test window has focus
authorAlbert Astals Cid <albert.astals@canonical.com>
Thu, 16 Jan 2014 10:55:54 +0000 (11:55 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 16 Jan 2014 16:47:47 +0000 (17:47 +0100)
commit05b6dc8d4d4e8f8e8c8d578d8ae4432e6d736445
tree05f82cd94d3dbad1922cd91e66aded2383a7aad3
parentacd0baf6428601b7eab9f96eff559c27909f073e
Make sure the test window has focus

Some setups like xvfb-run under Linux do not focus windows
after showing them, this means that any focus based test will
fail since the windows itself is unfocused. This makes sure
the test window will be shown and focused.

Change-Id: I1903b7cdf88b772e1ca15acd4899695b49615712
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qmltest/quicktest.cpp