QNX: Make QWidget::hide() work immediately.

Change-Id: I3ea2556769703a8cd4c2931cc2332ab0733fbea6
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
This commit is contained in:
Sergio Martins 2013-01-14 11:29:39 +00:00 committed by The Qt Project
parent aa2da482fe
commit d525764430

View File

@ -271,8 +271,14 @@ void QQnxWindow::setVisible(bool visible)
window()->requestActivate();
if (window()->isTopLevel() && visible)
QWindowSystemInterface::handleExposeEvent(window(), window()->geometry());
if (window()->isTopLevel()) {
if (visible) {
QWindowSystemInterface::handleExposeEvent(window(), window()->geometry());
} else {
// Flush the context, otherwise it won't disappear immediately
screen_flush_context(m_screenContext, 0);
}
}
}
void QQnxWindow::updateVisibility(bool parentVisible)