Blackberry: Fix camera viewfinder
authorTobias Koenig <tobias.koenig.qnx@kdab.com>
Wed, 23 Oct 2013 16:04:58 +0000 (18:04 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 24 Oct 2013 14:42:25 +0000 (16:42 +0200)
commita2f9f25d8577fefe8358eb848da206e5ebdf4178
tree0e32458f40da8bef22138be7d3f61365a1cebf2f
parente3bd0333de0b7632024cdd5e8e8833173c960549
Blackberry: Fix camera viewfinder

Enter the event loop between opening the camera and starting
the viewfinder window grabber. The latter needs a windowGroup
set, so in case the QCamera and QCameraViewfinder are constructed
directly/indirectly inside the main window constructor, we have to
wait for the top-level window of the application to be created, so
that we can retrieve the windowGroup from it.

Task-number: QTBUG-33739
Change-Id: Ib23781f0e4a2a07ba388e22debcb59b00509ed16
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Tobias Koenig <tobias.koenig.qnx@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/plugins/blackberry/camera/bbcamerasession.cpp
src/plugins/blackberry/camera/bbcamerasession.h