path: root/src/gui/kernel/qstylehints.cpp
diff options
authorSamuel Rødal <>2012-01-11 08:31:00 +0100
committerQt by Nokia <>2012-01-12 10:19:49 +0100
commit8ff37ff535318331f0179cdf0d2f6319cd7ae1c2 (patch)
tree640cd1a229f497624a4fc49bc24843ef2341fd35 /src/gui/kernel/qstylehints.cpp
parentbffbcfd0ccc863884701e79a260b1b05f9dc8bb0 (diff)
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 <> Reviewed-by: Jørgen Lind <> Reviewed-by: Morten Johan Sørvig <>
Diffstat (limited to 'src/gui/kernel/qstylehints.cpp')
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp
index 4218477aac..eb0f055270 100644
--- a/src/gui/kernel/qstylehints.cpp
+++ b/src/gui/kernel/qstylehints.cpp
@@ -86,4 +86,9 @@ int QStyleHints::cursorFlashTime() const
return hint(QPlatformIntegration::CursorFlashTime).toInt();
+bool QStyleHints::showIsFullScreen() const
+ return hint(QPlatformIntegration::ShowIsFullScreen).toBool();