summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2012-12-06 15:50:20 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:55:47 +0100
commit599c7a5ab91f44cb9ed5f12f65d58ff9d543c930 (patch)
treef2fee76aa01ff48ba9f4bedafe72821598e831bb /src
parent5d878cae1d090b9c7d5730a85667e569e67c17d4 (diff)
iOS: Set initial window state on window creation
When showing a QWindow the window state is set first, and then the window is made visible. The latter is the step that creates the platform window, so we need to pick up the already set window state in our constructor and respect that. Change-Id: I54fe6c4ebcd3c9504614d2d48bd21f0d76adf3b7 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/ios/qioswindow.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.mm b/src/plugins/platforms/ios/qioswindow.mm
index 0b2b5fcfd7..daeb86fb62 100644
--- a/src/plugins/platforms/ios/qioswindow.mm
+++ b/src/plugins/platforms/ios/qioswindow.mm
@@ -202,6 +202,8 @@ QIOSWindow::QIOSWindow(QWindow *window)
{
if ([[UIApplication sharedApplication].delegate isKindOfClass:[QIOSApplicationDelegate class]])
[[UIApplication sharedApplication].delegate.window.rootViewController.view addSubview:m_view];
+
+ setWindowState(window->windowState());
}
QIOSWindow::~QIOSWindow()