summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorSergio Martins <sergio.martins.qnx@kdab.com>2013-01-15 09:49:17 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-15 21:54:02 (GMT)
commitcbc4839884daa916136c1354bb0bea3fc9b36bcc (patch)
tree6830ef7eab6d50720b8ccb6a3f55de3fdd959f8e /src/plugins
parentb744d9317153772d431e83aa306cea0faa0dc520 (diff)
downloadQt-cbc4839884daa916136c1354bb0bea3fc9b36bcc.zip
Qt-cbc4839884daa916136c1354bb0bea3fc9b36bcc.tar.gz
Qt-cbc4839884daa916136c1354bb0bea3fc9b36bcc.tar.bz2
QNX: Make QWidget::hide() work immediately.
Backport from qtbase d5257644302e349fec8df5750d100fd4918ddd6b Change-Id: Ib46a8aecf5c4abe83d0161f72c480094002719e3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/blackberry/qbbwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/blackberry/qbbwindow.cpp b/src/plugins/platforms/blackberry/qbbwindow.cpp
index e87febb..bd5c713 100644
--- a/src/plugins/platforms/blackberry/qbbwindow.cpp
+++ b/src/plugins/platforms/blackberry/qbbwindow.cpp
@@ -244,6 +244,11 @@ void QBBWindow::setVisible(bool visible)
root->updateVisibility(root->mVisible);
widget()->activateWindow();
+
+ if (!visible) {
+ // Flush the context, otherwise it won't disappear immediately
+ screen_flush_context(mContext, 0);
+ }
}
void QBBWindow::updateVisibility(bool parentVisible)