diff --git a/src/pulsatingscience.cpp b/src/pulsatingscience.cpp index 5ad367fdcc2a582051c3248583fa6f94983ec80c..209c5c5729934d49b3cc8ec8ec0acebc05848f9e 100644 --- a/src/pulsatingscience.cpp +++ b/src/pulsatingscience.cpp @@ -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);