Skip to content
Snippets Groups Projects
Commit 88dcf497 authored by Oliver Bock's avatar Oliver Bock
Browse files

API change in Qt 4.6

parent 210ed00a
Branches
Tags release_1.0
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment