Go to file
Richard Moe Gustavsen d6588d2051 QPlatformWindow: change API for QPlatformWindow::setWindowState
The current implementation requests the platform window to set
the window state if it can, and return the actual window state
back.

The problem with this approach is that the platform window is created
as late as possible, so a call to QWindow::setWindowState would in
many (most?) cases never be forwarded to the platform window (instead,
the platform window is responsible to check the current window state
upon creation). As such, the window state might be left unsynched with
the platform window.

This patch suggests removing the return value from
QPlatformWindow::setWindowState. This will at least be consistent, so
that setting/getting state would produce the same result independent of
delayed window creation. If needed, we can later add new API to
QPlatformIntegration or QPlatformWindow for querying supported/actual
window state.

Change-Id: Ie43f56169656854a765ce88b47a808f8f3d51bb4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
2012-10-17 09:39:01 +02:00
bin restore compat with old perl: don't use \h in regexps 2012-10-16 17:31:31 +02:00
config.tests config.tests/glib: remove app_bundle config (mac compatibility) 2012-10-09 18:00:25 +02:00
dist QTextBoundaryFinder: Fix handling of break opportunities 2012-10-12 07:44:51 +02:00
doc HTML template: Updated copyright information from Nokia to Digia Plc 2012-09-27 02:29:35 +02:00
examples Fixed cube opengl example 2012-10-17 04:19:15 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs fix syntax of warning message 2012-10-16 17:31:31 +02:00
qmake Remove addition of dependencies for static libraries. 2012-10-16 17:31:31 +02:00
src QPlatformWindow: change API for QPlatformWindow::setWindowState 2012-10-17 09:39:01 +02:00
tests Test: remove QSKIP in tst_QSharedPointer::lambdaCustomDeleter 2012-10-16 20:43:37 +02:00
tools Fix compile errors in configure.exe. 2012-10-16 15:29:15 +02:00
util Update the Unicode Data and Algorithms up to Unicode 6.2 2012-10-09 03:04:41 +02:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Remove the <module>version.h files from .gitignore. 2012-09-27 23:51:30 +02:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure Remove mention of freetype options in configure. 2012-10-17 04:19:12 +02:00
configure.bat Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.BSD Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.FDL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL-ONLY Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
INSTALL fix links in INSTALL 2012-10-10 08:45:22 +02:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro Modularize documenation build 2012-10-10 23:27:03 +02:00
sync.profile Revert "Move QWindowSystemInterface out of qpa." 2012-08-03 00:38:09 +02:00