summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-07-05 14:37:20 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-07-05 14:37:20 (GMT)
commit8bfcd87139550fd23159f066713274a8c41ad6dc (patch)
tree886305ad4f8b4473e1df2556df336a5d4e6afe3b /src
parent6adc6f500e1d2f65a493a76baf35c5f11180edeb (diff)
parenteecc9d287c6d9db62b24ee2c80eb994a5552e41f (diff)
downloadQt-8bfcd87139550fd23159f066713274a8c41ad6dc.zip
Qt-8bfcd87139550fd23159f066713274a8c41ad6dc.tar.gz
Qt-8bfcd87139550fd23159f066713274a8c41ad6dc.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Fixes switching runtime graphics system when the maximized window is shown or hidden.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/graphicssystems/meego/qmeegographicssystem.cpp8
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