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>
This commit is contained in:
Tor Arne Vestbø 2012-12-06 15:50:20 +01:00
parent 5d878cae1d
commit 599c7a5ab9

View File

@ -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()