[vlc-devel] [PATCH] Show menubar if qt4-intf is in minimal view if	not input is playing.
    VlcVelope 
    1034-135 at online.de
       
    Sun Apr 29 20:51:44 CEST 2012
    
    
  
It makes the minimal view a little more usable. Next step could be to use the
fullscreen controller, if the interface is in minimal view.
Regards,
VlcVelope
---
 modules/gui/qt4/main_interface.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 84cfa9b..2dec50d 100755
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -567,6 +567,9 @@ inline void MainInterface::showTab( QWidget *widget )
         }
     }
 
+    if( b_minimalView )
+        menuBar()->setVisible( widget!=videoWidget );
+
     stackCentralW->setCurrentWidget( widget );
     if( b_autoresize )
         resizeStack( stackWidgetsSizes[widget].width(), stackWidgetsSizes[widget].height() );
@@ -888,7 +891,7 @@ void MainInterface::dockPlaylist( bool p_docked )
  */
 void MainInterface::setMinimalView( bool b_minimal )
 {
-    menuBar()->setVisible( !b_minimal );
+    menuBar()->setVisible( !b_minimal || stackCentralW->currentWidget() != videoWidget );
     controls->setVisible( !b_minimal );
     statusBar()->setVisible( !b_minimal && b_statusbarVisible );
     inputC->setVisible( !b_minimal );
-- 
1.7.5.4
    
    
More information about the vlc-devel
mailing list