diff options
author | Stanislav Ionascu <stanislav.ionascu@nokia.com> | 2011-07-05 10:48:11 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-07-05 10:48:11 (GMT) |
commit | eecc9d287c6d9db62b24ee2c80eb994a5552e41f (patch) | |
tree | 3afac2e0450980b6d1bae87ea27bdcdc1f3e52d8 | |
parent | 57993ba7a181c92acfa8a0213ed1260c3b85fbd4 (diff) | |
download | Qt-eecc9d287c6d9db62b24ee2c80eb994a5552e41f.zip Qt-eecc9d287c6d9db62b24ee2c80eb994a5552e41f.tar.gz Qt-eecc9d287c6d9db62b24ee2c80eb994a5552e41f.tar.bz2 |
Fixes switching runtime graphics system when the maximized window is shown or hidden.
Merge-request: 1287
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
-rw-r--r-- | src/plugins/graphicssystems/meego/qmeegographicssystem.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/meego/qmeegographicssystem.cpp b/src/plugins/graphicssystems/meego/qmeegographicssystem.cpp index 6268d4b..a034b0e 100644 --- a/src/plugins/graphicssystems/meego/qmeegographicssystem.cpp +++ b/src/plugins/graphicssystems/meego/qmeegographicssystem.cpp @@ -174,6 +174,14 @@ bool QMeeGoGraphicsSystemSwitchHandler::eventFilter(QObject *object, QEvent *eve QMeeGoGraphicsSystem::switchToMeeGo(); } } + } else if (event->type() == QEvent::Show + && QMeeGoGraphicsSystem::switchPolicy == QMeeGoGraphicsSystem::AutomaticSwitch) { + if (visibleWidgets() > 0) + QMeeGoGraphicsSystem::switchToMeeGo(); + } else if (event->type() == QEvent::Hide + && QMeeGoGraphicsSystem::switchPolicy == QMeeGoGraphicsSystem::AutomaticSwitch) { + if (visibleWidgets() == 0) + QMeeGoGraphicsSystem::switchToRaster(); } // resume processing of event |