diff options
author | Bernd Weimer <bweimer@blackberry.com> | 2013-08-21 14:29:45 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-26 18:14:25 +0200 |
commit | 969a547680db18f2059bb395a23494e359ecbead (patch) | |
tree | 8a27d739c3dfbfb614252f4ca269f33b6c38c920 /src/plugins | |
parent | 721d04eb3b1a8a1daa3d0206adaeb01f652170c7 (diff) |
BlackBerry: Fixed cover mode
When the application is minimized a "thumbnail" version of the current
screen is displayed. The windows were hidden before the navigator could
capture a screenshot, so the cover was just black. This fix avoids that.
In Qt5 "setVisible" doesnt't get called, so it's not a problem there.
Change-Id: I4b657e75afcab03b8b100ac5dd41807e2ce9ef33
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/blackberry/qbbwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/blackberry/qbbwindow.cpp b/src/plugins/platforms/blackberry/qbbwindow.cpp index bd5c7136eb..7743b7e137 100644 --- a/src/plugins/platforms/blackberry/qbbwindow.cpp +++ b/src/plugins/platforms/blackberry/qbbwindow.cpp @@ -245,10 +245,10 @@ void QBBWindow::setVisible(bool visible) widget()->activateWindow(); - if (!visible) { - // Flush the context, otherwise it won't disappear immediately + // Flush the context when invisible, otherwise it won't disappear immediately, + // but still allow navigator to capture screenshot (thumbnail) when minimized + if (!visible && !(widget()->windowState() & Qt::WindowMinimized)) screen_flush_context(mContext, 0); - } } void QBBWindow::updateVisibility(bool parentVisible) |