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() ...@@ -450,7 +450,7 @@ void PulsatingScience::toggleHiddenDemoMode()
if(m_hiddenDemoModeActivated) { if(m_hiddenDemoModeActivated) {
#ifdef __APPLE__ #ifdef __APPLE__
// show Menubar & Dock // show Menubar & Dock
SetSystemUIMode(kUIModeNormal, 0); // unavailable in Qt 4.6: SetSystemUIMode(kUIModeNormal, 0);
window()->setWindowFlags(windowFlags() window()->setWindowFlags(windowFlags()
& ~Qt::FramelessWindowHint & ~Qt::FramelessWindowHint
& ~Qt::WindowStaysOnTopHint); & ~Qt::WindowStaysOnTopHint);
...@@ -467,8 +467,8 @@ void PulsatingScience::toggleHiddenDemoMode() ...@@ -467,8 +467,8 @@ void PulsatingScience::toggleHiddenDemoMode()
else { else {
#ifdef __APPLE__ #ifdef __APPLE__
// hide Menubar & Dock // hide Menubar & Dock
SetSystemUIMode(kUIModeAllHidden, 0); // unavailable in Qt 4.6: SetSystemUIMode(kUIModeAllHidden, 0);
// don't ever ask my why this works _only_ in exactly this order on the Mac // don't ever ask me why this works _only_ in exactly this order on the Mac
window()->setWindowFlags(windowFlags() window()->setWindowFlags(windowFlags()
| Qt::FramelessWindowHint | Qt::FramelessWindowHint
| Qt::WindowStaysOnTopHint); | 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