diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-12-17 23:03:21 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-12-19 22:16:07 +0000 |
commit | 7628316e6e8165415dd84f2f8744a3ddd29bd675 (patch) | |
tree | e20acd9739b5a743d784488f5106b6ca960c6738 /examples | |
parent | 96158b46afbe4a71794206deacdc58e8022c57ff (diff) |
Let platform decide what the default show action is
The platform handles this through the ShowIsMaximized and
ShowIsFullScreen platform integration style-hints, as well
as QPlatformIntegration::defaultWindowState(), which was
added specifically so that we wouldn't have to hard-code
the behavior in user code.
Change-Id: Ic019ccc2edd871a78bf94fd5fe572b9659416582
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/shared/shared.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/quick/shared/shared.h b/examples/quick/shared/shared.h index 6194a56dfd..317d8c70cb 100644 --- a/examples/quick/shared/shared.h +++ b/examples/quick/shared/shared.h @@ -72,11 +72,6 @@ if (view.status() == QQuickView::Error)\ return -1;\ view.setResizeMode(QQuickView::SizeRootObjectToView);\ - if (QGuiApplication::platformName() == QLatin1String("qnx") || \ - QGuiApplication::platformName() == QLatin1String("eglfs")) {\ - view.showFullScreen();\ - } else {\ - view.show();\ - }\ + view.show();\ return app.exec();\ } |