Cocoa: Make sure non windowed QCocoaWindows hide their content views
Change-Id: I92b8600c513ba033c459b6911ca62fc31698dc4a Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
8a091a848b
commit
601d99d062
@ -303,6 +303,8 @@ void QCocoaWindow::setVisible(bool visible)
|
||||
if (window()->type() == Qt::Popup)
|
||||
[(NSPanel *)m_nsWindow setWorksWhenModal:YES];
|
||||
}
|
||||
} else {
|
||||
[m_contentView setHidden:NO];
|
||||
}
|
||||
} else {
|
||||
// qDebug() << "close" << this;
|
||||
@ -318,6 +320,8 @@ void QCocoaWindow::setVisible(bool visible)
|
||||
[NSApp endSheet:m_nsWindow];
|
||||
}
|
||||
[m_nsWindow orderOut:m_nsWindow];
|
||||
} else {
|
||||
[m_contentView setHidden:YES];
|
||||
}
|
||||
if (!QCoreApplication::closingDown())
|
||||
QWindowSystemInterface::handleExposeEvent(window(), QRegion());
|
||||
|
Loading…
Reference in New Issue
Block a user