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:
parent
aa2da482fe
commit
d525764430
@ -271,8 +271,14 @@ void QQnxWindow::setVisible(bool visible)
|
||||
|
||||
window()->requestActivate();
|
||||
|
||||
if (window()->isTopLevel() && visible)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user