Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
einsteinathome
pulsatingscience
Commits
f7362713
Commit
f7362713
authored
Feb 20, 2009
by
Oliver Bock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --demo command line option (launch into IYA2009 mode)
parent
91ab8ad1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/main.cpp
src/main.cpp
+3
-0
src/pulsatingscience.cpp
src/pulsatingscience.cpp
+4
-2
No files found.
src/main.cpp
View file @
f7362713
...
...
@@ -36,6 +36,9 @@ int main(int argc, char *argv[])
app
.
installTranslator
(
&
appTranslator
);
PulsatingScience
window
;
if
(
argc
==
2
&&
QString
(
argv
[
1
])
==
"--demo"
)
{
window
.
toggleHiddenDemoMode
();
}
window
.
show
();
return
app
.
exec
();
...
...
src/pulsatingscience.cpp
View file @
f7362713
...
...
@@ -438,13 +438,15 @@ void PulsatingScience::updatePulsarSemiMajorAxisValue(double value)
void
PulsatingScience
::
toggleHiddenDemoMode
()
{
if
(
m_hiddenDemoModeActivated
)
{
menuBarToggled
();
on_actionMenu_bar_toggled
(
true
);
ui
.
actionMenu_bar
->
setChecked
(
true
);
window
()
->
setWindowState
(
windowState
()
&
~
Qt
::
WindowFullScreen
);
ui
.
dockAnimControl
->
setFeatures
(
QDockWidget
::
DockWidgetClosable
|
QDockWidget
::
DockWidgetMovable
|
QDockWidget
::
DockWidgetFloatable
);
m_hiddenDemoModeActivated
=
false
;
}
else
{
menuBarToggled
();
on_actionMenu_bar_toggled
(
false
);
ui
.
actionMenu_bar
->
setChecked
(
false
);
window
()
->
setWindowState
(
windowState
()
|
Qt
::
WindowFullScreen
);
ui
.
dockAnimControl
->
setFeatures
(
QDockWidget
::
NoDockWidgetFeatures
);
m_hiddenDemoModeActivated
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment