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 ) ...@@ -1135,6 +1135,14 @@ void MainInterface::closeEvent( QCloseEvent *e )
THEDP->quit(); THEDP->quit();
} }
void MainInterface::toggleFullScreen( void )
{
if( isFullScreen() )
showNormal();
else
showFullScreen();
}
/***************************************************************************** /*****************************************************************************
* Callbacks * Callbacks
*****************************************************************************/ *****************************************************************************/
......
...@@ -143,6 +143,7 @@ public slots: ...@@ -143,6 +143,7 @@ public slots:
void togglePlaylist(); void togglePlaylist();
void toggleUpdateSystrayMenu(); void toggleUpdateSystrayMenu();
void toggleAdvanced(); void toggleAdvanced();
void toggleFullScreen();
/* Manage the Video Functions from the vout threads */ /* Manage the Video Functions from the vout threads */
void releaseVideoSlot( void * ); void releaseVideoSlot( void * );
......
...@@ -274,6 +274,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, ...@@ -274,6 +274,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
if( mi->getControlsVisibilityStatus() & CONTROLS_VISIBLE ) if( mi->getControlsVisibilityStatus() & CONTROLS_VISIBLE )
action->setChecked( true ); action->setChecked( true );
/* FullScreen View */
action = menu->addAction( qtr( "Toggle Fullscreen Interface" ), mi,
SLOT( toggleFullScreen() ), qtr( "F11" ) );
/* Advanced Controls */ /* Advanced Controls */
action = menu->addAction( qtr( "Advanced controls" ), mi, action = menu->addAction( qtr( "Advanced controls" ), mi,
SLOT( toggleAdvanced() ) ); 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