summaryrefslogtreecommitdiffstats
path: root/src/plugins/graphicssystems
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-07-06 16:05:48 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-07-06 16:05:48 (GMT)
commit8bc5a6319455d7dc0655a8c48862ada8890b0064 (patch)
tree2f43d23e5a30e9f2c18698038291c74254db480a /src/plugins/graphicssystems
parent013fb92b20db4fc3dc6a7a7d4cd0a3a0c941472f (diff)
parent156893a247f1c24094129b6f5151c8b821d8b1b5 (diff)
downloadQt-8bc5a6319455d7dc0655a8c48862ada8890b0064.zip
Qt-8bc5a6319455d7dc0655a8c48862ada8890b0064.tar.gz
Qt-8bc5a6319455d7dc0655a8c48862ada8890b0064.tar.bz2
Merge branch 4.7 into qt-4.8-from-4.7
Diffstat (limited to 'src/plugins/graphicssystems')
-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 3423d2c..94efc2f 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