summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-01-27 13:44:59 (GMT)
committerCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-01-27 13:50:25 (GMT)
commit9d207f042ea135eda6bcd91c47d581914470fa6d (patch)
tree0e49c7079efa9097c90bac48b1e61601155a9038 /src/gui
parent9a2a6531c91d63ad55f65ad6a2b0fdaf7d739bfe (diff)
downloadQt-9d207f042ea135eda6bcd91c47d581914470fa6d.zip
Qt-9d207f042ea135eda6bcd91c47d581914470fa6d.tar.gz
Qt-9d207f042ea135eda6bcd91c47d581914470fa6d.tar.bz2
Mac: Calling showFullScreen() then showNormal() on a widget results in top menu hiding.
The problem here was the way we entered Full Screen Mode. We were using "kUIModeAllSuppressed" which does the following according to the manual: kUIModeAllSuppressed All system UI elements (including the menu bar) are hidden. However, these elements may automatically show themselves in response to mouse movements or other user activity. I changed it to "kUIModeAllHidden", which does the following: All system UI elements (including the menu bar) are hidden. To prevent a change of behavior I added the following option to the SetSystemUIMode: kUIOptionAutoShowMenuBar This flag specifies that the menu bar automatically shows itself when the user moves the mouse into the screen area that would ordinarily be occupied by the menu bar. Only valid for the presentation mode kUIModeAllHidden. Task-number: QTBUG-7625 Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qwidget_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 3dbc843..ebfab21 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -404,7 +404,7 @@ inline static void qt_mac_set_fullscreen_mode(bool b)
return;
qt_mac_app_fullscreen = b;
if (b) {
- SetSystemUIMode(kUIModeAllSuppressed, 0);
+ SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar);
} else {
SetSystemUIMode(kUIModeNormal, 0);
}