Commit 88dcf497 authored by Oliver Bock's avatar Oliver Bock

API change in Qt 4.6

parent 210ed00a
......@@ -450,7 +450,7 @@ void PulsatingScience::toggleHiddenDemoMode()
if(m_hiddenDemoModeActivated) {
#ifdef __APPLE__
// show Menubar & Dock
SetSystemUIMode(kUIModeNormal, 0);
// unavailable in Qt 4.6: SetSystemUIMode(kUIModeNormal, 0);
window()->setWindowFlags(windowFlags()
& ~Qt::FramelessWindowHint
& ~Qt::WindowStaysOnTopHint);
......@@ -467,8 +467,8 @@ void PulsatingScience::toggleHiddenDemoMode()
else {
#ifdef __APPLE__
// hide Menubar & Dock
SetSystemUIMode(kUIModeAllHidden, 0);
// don't ever ask my why this works _only_ in exactly this order on the Mac
// unavailable in Qt 4.6: SetSystemUIMode(kUIModeAllHidden, 0);
// don't ever ask me why this works _only_ in exactly this order on the Mac
window()->setWindowFlags(windowFlags()
| Qt::FramelessWindowHint
| Qt::WindowStaysOnTopHint);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment