Make show() default to sane sizing behaviour based on the platform.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 11 Jan 2012 07:31:00 +0000 (08:31 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 12 Jan 2012 09:19:49 +0000 (10:19 +0100)
commit8ff37ff535318331f0179cdf0d2f6319cd7ae1c2
tree640cd1a229f497624a4fc49bc24843ef2341fd35
parentbffbcfd0ccc863884701e79a260b1b05f9dc8bb0
Make show() default to sane sizing behaviour based on the platform.

Traditionally it's been hard to write a Qt app that behaves sanely
across embedded and desktop platforms, i.e. defaults to fullscreen on
embedded and non-fullscreen on desktop. For Qt 5 we can fix this by
making the behaviour of the default QWindow::show() be customizable by
the platform plugin.

If the application developer wants to override this behaviour he can
still use the explicit showFullScreen(), showNormal() etc functions.

Change-Id: I26a907b404058e345d841c818daefbb57a26d3fd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/gui/kernel/qplatformintegration_qpa.cpp
src/gui/kernel/qplatformintegration_qpa.h
src/gui/kernel/qstylehints.cpp
src/gui/kernel/qstylehints.h
src/gui/kernel/qwindow.cpp
src/gui/kernel/qwindow.h
src/plugins/platforms/eglfs/qeglfsintegration.cpp
src/plugins/platforms/eglfs/qeglfsintegration.h