Added MultipleWindows platform capability.
authorSamuel Rødal <samuel.rodal@digia.com>
Wed, 31 Oct 2012 11:32:31 +0000 (12:32 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 11:17:27 +0000 (12:17 +0100)
commit300534fc214f2547a63594ce0891e9a54c8f33ca
tree5ebb0d425a84b61e789b4dcadde62d08c4d0b6aa
parent6be78c0712aa4290fed9cf985a52a74869ee85f0
Added MultipleWindows platform capability.

Several platform plugins, like eglfs, kms, etc don't support multiple
windows as there's no system compositor, they're rendering directly to
a single back buffer. By adding a platform capability we'll be able to
provide better error reporting when an application tries to create
multiple QWindows on a single-window platform. Also, QML apps can use
this capability to figure out whether they should create a QWindow for
dialogs / popups / menus, or whether to just create items in the same
scene, that are shown on top of the rest of the content.

Change-Id: I15b8d21ee2bc4568e9d705dbf32f872c2c25742b
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
src/gui/kernel/qplatformintegration.cpp
src/gui/kernel/qplatformintegration.h
src/plugins/platforms/cocoa/qcocoaintegration.mm
src/plugins/platforms/minimal/qminimalintegration.cpp
src/plugins/platforms/windows/qwindowsintegration.cpp
src/plugins/platforms/xcb/qxcbintegration.cpp