QNX post an expose event when the window is hidden

When the window is hidden, an expose event has to be be posted. This is e.g. needed by the qquickwindow. A exposeEvent calles the exposureChanged
function of the window manager there.

Change-Id: I9d891e07f81192dcd6674743620319c44da19c48
Reviewed-by: Wolfgang Bremer <wbremer@rim.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
bb10
Fabian Bumberger 2013-02-25 17:24:47 +01:00 committed by The Qt Project
parent faefc09e93
commit 0c8487156e
1 changed files with 3 additions and 3 deletions

View File

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