Skip to content

Commit 045e132

Browse files
committed
Add FullScreen mode to View menu
1 parent 2037024 commit 045e132

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/gui/src/MainForm.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@ void MainForm::createMenuBar()
336336
m_pViewMenu->addAction( trUtf8("&Mixer"), this, SLOT( action_window_showMixer() ), QKeySequence( "Alt+M" ) );
337337

338338
m_pViewMenu->addAction( trUtf8("&Instrument Rack"), this, SLOT( action_window_showDrumkitManagerPanel() ), QKeySequence( "Alt+I" ) );
339+
340+
m_pViewMenu->addSeparator(); // -----
341+
342+
m_pViewMenu->addAction( trUtf8("Full screen"), this, SLOT( action_window_toggleFullscreen() ), QKeySequence( "Alt+F" ) );
339343

340344

341345
// Options menu
@@ -837,6 +841,15 @@ void MainForm::action_window_show_DirectorWidget()
837841
h2app->showDirector();
838842
}
839843

844+
void MainForm::action_window_toggleFullscreen()
845+
{
846+
if( this->isFullScreen() ){
847+
this->showNormal();
848+
} else {
849+
this->showFullScreen();
850+
}
851+
}
852+
840853
void MainForm::action_window_showMixer()
841854
{
842855
bool isVisible = HydrogenApp::get_instance()->getMixer()->isVisible();

src/gui/src/MainForm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public slots:
103103
void action_window_showSongEditor();
104104
void action_window_showPatternEditor();
105105
void action_window_showDrumkitManagerPanel();
106+
void action_window_toggleFullscreen();
106107

107108
void action_debug_printObjects();
108109
void action_debug_showAudioEngineInfo();

0 commit comments

Comments
 (0)