Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pulsatingscience
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
pulsatingscience
Commits
12317e31
Commit
12317e31
authored
7 years ago
by
Oliver Bock
Browse files
Options
Downloads
Patches
Plain Diff
Updated comments
parent
594dc25e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pulsatingscience.cpp
+2
-7
2 additions, 7 deletions
src/pulsatingscience.cpp
with
2 additions
and
7 deletions
src/pulsatingscience.cpp
+
2
−
7
View file @
12317e31
...
...
@@ -529,13 +529,12 @@ void PulsatingScience::toggleHiddenDemoMode()
{
if
(
m_hiddenDemoModeActivated
)
{
#ifdef __APPLE__
// show Menubar & Dock
// unavailable in Qt 4.6: SetSystemUIMode(kUIModeNormal, 0);
window
()
->
setWindowFlags
(
windowFlags
()
&
~
Qt
::
FramelessWindowHint
&
~
Qt
::
WindowStaysOnTopHint
);
window
()
->
showNormal
();
#endif
// show Menubar & Dock
on_actionMenu_bar_toggled
(
true
);
ui
.
actionMenu_bar
->
setChecked
(
true
);
window
()
->
setWindowState
(
windowState
()
&
~
Qt
::
WindowFullScreen
);
...
...
@@ -547,16 +546,12 @@ void PulsatingScience::toggleHiddenDemoMode()
}
else
{
#ifdef __APPLE__
// hide Menubar & Dock
// 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
);
window
()
->
showMaximized
();
// might be needed to remove the resize handle on some systems
// window()->setFixedSize(width(), height());
#endif
// hide Menubar & Dock
on_actionMenu_bar_toggled
(
false
);
ui
.
actionMenu_bar
->
setChecked
(
false
);
window
()
->
setWindowState
(
windowState
()
|
Qt
::
WindowFullScreen
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment