Cocoa: Don't hide views when reparenting
Commit a2bdda8e3b was meant for creation only. We should not
hide views on our own, particularly when Qt had not asked for that.
Task-number: QTBUG-33581
Change-Id: Ib35fc78a27be1498f80aabd385e7a2185475b949
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
bb10
parent
f2720a806e
commit
a199a87ad5
|
|
@ -713,7 +713,10 @@ WId QCocoaWindow::winId() const
|
|||
void QCocoaWindow::setParent(const QPlatformWindow *parentWindow)
|
||||
{
|
||||
// recreate the window for compatibility
|
||||
bool unhideAfterRecreate = parentWindow && !m_contentViewIsToBeEmbedded && ![m_contentView isHidden];
|
||||
recreateWindow(parentWindow);
|
||||
if (unhideAfterRecreate)
|
||||
[m_contentView setHidden:NO];
|
||||
setCocoaGeometry(geometry());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue