macOS: Remove stale code for handling view hiding during reparenting
Commitbb10a2bdda8e3badded an unconditional hide of child NSViews, which was found to be too strict, and worked around ina199a87adby undoing the hide during setParent(). The unconditional hide was then changed in89842b97d7to use the visibility state of the window, which means the workaround ina199a87adis no longer needed. Change-Id: If0df2de65693e03c5fb53a906b1399accab3fcc4 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
parent
a54639acd2
commit
ac9497a0ef
|
|
@ -1105,11 +1105,9 @@ void QCocoaWindow::setParent(const QPlatformWindow *parentWindow)
|
|||
{
|
||||
qCDebug(lcQpaWindow) << "QCocoaWindow::setParent" << window() << (parentWindow ? parentWindow->window() : 0);
|
||||
|
||||
// recreate the window for compatibility
|
||||
bool unhideAfterRecreate = parentWindow && !isEmbedded() && ![m_view isHidden];
|
||||
// Recreate in case we need to get rid of a NSWindow, or create one
|
||||
recreateWindowIfNeeded();
|
||||
if (unhideAfterRecreate)
|
||||
[m_view setHidden:NO];
|
||||
|
||||
setCocoaGeometry(geometry());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue