Delay initialization of QQnxRootWindow until first access.
authorSergio Martins <sergio.martins.qnx@kdab.com>
Mon, 28 Jan 2013 15:48:25 +0000 (15:48 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 29 Jan 2013 00:50:42 +0000 (01:50 +0100)
commite02ecba61f3a271c4f2559c82904c4b8d3b03e61
tree24c533a5af01eb0e62e5498ade7f3a90f7bc9667
parentedd2d9bd0a7f5dbe059aea0902d519b728acc01a
Delay initialization of QQnxRootWindow until first access.

QtWebProcess, for example, doesn't create any QWindow, so it doesn't
need any root window.

This fixes Webkit2 rendering on QNX.

Change-Id: I1d4c0dd20869798ba2bcd15f9d96e5fca4beb48e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/plugins/platforms/qnx/qqnxrootwindow.cpp
src/plugins/platforms/qnx/qqnxrootwindow.h
src/plugins/platforms/qnx/qqnxscreen.cpp
src/plugins/platforms/qnx/qqnxscreen.h