]> git.sesse.net Git - vlc/commitdiff
qt4: add the hability to put the *interface* in fullscreen (hotkey: F11)
authorRafaël Carré <funman@videolan.org>
Sun, 20 Jan 2008 21:26:07 +0000 (21:26 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 20 Jan 2008 21:26:07 +0000 (21:26 +0000)
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/menus.cpp

index 0c8022d086018decd47b3c0dc0b6bb1df3108e3d..3c5943fc7d8c7ca774c93241c9b3753eb1f86d5c 100644 (file)
@@ -1135,6 +1135,14 @@ void MainInterface::closeEvent( QCloseEvent *e )
     THEDP->quit();
 }
 
+void MainInterface::toggleFullScreen( void )
+{
+    if( isFullScreen() )
+        showNormal();
+    else
+        showFullScreen();
+}
+
 /*****************************************************************************
  * Callbacks
  *****************************************************************************/
index 85911e1ec8b2ca37e6f0acd9f61931522d63b8ac..4253fb7b5fdd0008e5eb21fca0765efb7aa7c25d 100644 (file)
@@ -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 * );
index 1857c912146057967422c04bee1bd88e0f3667b7..14e05bcd8108090eb421aceea867ce115cce60e4 100644 (file)
@@ -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() ) );