From 7628316e6e8165415dd84f2f8744a3ddd29bd675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Sun, 17 Dec 2017 23:03:21 +0100 Subject: 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 --- examples/quick/shared/shared.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'examples') 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();\ } -- cgit v1.2.3