Sync QWindow properties on NSWindow creation.
Synchronize size hints, window title, flags and state. Change-Id: Ibc2358d8d4d0625aaddfbcad159e3682e3e79d3c Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
parent
0915f189e2
commit
a0e617f669
@ -408,6 +408,12 @@ void QCocoaWindow::recreateWindow(const QPlatformWindow *parentWindow)
|
|||||||
m_nsWindow = createNSWindow();
|
m_nsWindow = createNSWindow();
|
||||||
setNSWindow(m_nsWindow);
|
setNSWindow(m_nsWindow);
|
||||||
|
|
||||||
|
// QPlatformWindow subclasses must sync up with QWindow on creation:
|
||||||
|
propagateSizeHints();
|
||||||
|
setWindowFlags(window()->windowFlags());
|
||||||
|
setWindowTitle(window()->windowTitle());
|
||||||
|
setWindowState(window()->windowState());
|
||||||
|
|
||||||
if (window()->transientParent()) {
|
if (window()->transientParent()) {
|
||||||
// keep this window on the same level as its transient parent (which may be a modal dialog, for example)
|
// keep this window on the same level as its transient parent (which may be a modal dialog, for example)
|
||||||
QCocoaWindow *parentCocoaWindow = static_cast<QCocoaWindow *>(window()->transientParent()->handle());
|
QCocoaWindow *parentCocoaWindow = static_cast<QCocoaWindow *>(window()->transientParent()->handle());
|
||||||
|
Loading…
Reference in New Issue
Block a user