Commit bd808b06 authored by Rafaël Carré's avatar Rafaël Carré

qt4: add the hability to put the *interface* in fullscreen (hotkey: F11)

parent 898e4eb8
......@@ -1135,6 +1135,14 @@ void MainInterface::closeEvent( QCloseEvent *e )
THEDP->quit();
}
void MainInterface::toggleFullScreen( void )
{
if( isFullScreen() )
showNormal();
else
showFullScreen();
}
/*****************************************************************************
* Callbacks
*****************************************************************************/
......
......@@ -143,6 +143,7 @@ public slots:
void togglePlaylist();
void toggleUpdateSystrayMenu();
void toggleAdvanced();
void toggleFullScreen();
/* Manage the Video Functions from the vout threads */
void releaseVideoSlot( void * );
......
......@@ -274,6 +274,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
if( mi->getControlsVisibilityStatus() & CONTROLS_VISIBLE )
action->setChecked( true );
/* FullScreen View */
action = menu->addAction( qtr( "Toggle Fullscreen Interface" ), mi,
SLOT( toggleFullScreen() ), qtr( "F11" ) );
/* Advanced Controls */
action = menu->addAction( qtr( "Advanced controls" ), mi,
SLOT( toggleAdvanced() ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment