diff options
author | Florian Jung <flo@windfisch.org> | 2011-08-22 18:17:08 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-08-22 18:17:08 +0000 |
commit | b420f1dd82698c9d7c46212a57a1142a4e37f228 (patch) | |
tree | 6e6c1ba331b84bbf5ac8deba4545a689201fa1a8 /muse2/muse/app.cpp | |
parent | 83d25a41dfc356d2249d8cbed2f08416013eb07c (diff) |
added fullscreen mode
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r-- | muse2/muse/app.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index b30358b1..d6990c67 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -506,6 +506,9 @@ MusE::MusE(int argc, char** argv) : QMainWindow() viewMarkerAction->setCheckable(true); viewArrangerAction = new QAction(tr("Arranger View"), this); viewArrangerAction->setCheckable(true); + fullscreenAction=new QAction(tr("Fullscreen"), this); + fullscreenAction->setCheckable(true); + fullscreenAction->setChecked(false); //-------- Midi Actions menuScriptPlugins = new QMenu(tr("&Plugins"), this); @@ -595,6 +598,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow() connect(viewCliplistAction, SIGNAL(toggled(bool)), SLOT(startClipList(bool))); connect(viewMarkerAction, SIGNAL(toggled(bool)), SLOT(toggleMarker(bool))); connect(viewArrangerAction, SIGNAL(toggled(bool)), SLOT(toggleArranger(bool))); + connect(fullscreenAction, SIGNAL(toggled(bool)), SLOT(setFullscreen(bool))); //-------- Midi connections connect(midiEditInstAction, SIGNAL(activated()), SLOT(startEditInstrument())); @@ -767,6 +771,8 @@ MusE::MusE(int argc, char** argv) : QMainWindow() menuView->addAction(viewCliplistAction); menuView->addAction(viewMarkerAction); menuView->addAction(viewArrangerAction); + menuView->addSeparator(); + menuView->addAction(fullscreenAction); //------------------------------------------------------------- @@ -3246,3 +3252,11 @@ void MusE::bringToFront(QWidget* widget) win->raise(); } } + +void MusE::setFullscreen(bool val) +{ + if (val) + showFullScreen(); + else + showNormal(); +} |