]> git.sesse.net Git - vlc/commitdiff
Qt: code cosmetics
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 14 Oct 2009 20:02:45 +0000 (22:02 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 4 Dec 2009 06:21:37 +0000 (07:21 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.hpp

index 9b81ff179e8d11d9fd23c9e05b61c6bae0079578..9f642014bce06befa245ff1c5f6a0f1b54939fc2 100644 (file)
@@ -86,13 +86,14 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
 #ifndef HAVE_MAEMO
     sysTray              = NULL;
 #endif
-    playlistVisible      = false;
-    input_name           = "";
     fullscreenControls   = NULL;
     cryptedLabel         = NULL;
     controls             = NULL;
     inputC               = NULL;
-    b_shouldHide         = false;
+
+    b_hideAfterCreation  = false;
+    playlistVisible      = false; // FIXME remove
+    input_name           = "";
 
     stackCentralOldState = HIDDEN_TAB;
     i_bg_height          = 0;
@@ -277,7 +278,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     debug();
 
     /* Final sizing and showing */
-    setVisible( !b_shouldHide );
+    setVisible( !b_hideAfterCreation );
     //setMinimumSize( QSize( 0, 0 ) );
 //    setMinimumWidth( __MAX( controls->sizeHint().width(),
   //                          menuBar()->sizeHint().width() ) );
@@ -304,9 +305,7 @@ MainInterface::~MainInterface()
 
     /* Unsure we hide the videoWidget before destroying it */
     if( stackCentralOldState == VIDEO_TAB )
-    {
         showBg();
-    }
 
     /* Save playlist state */
     if( playlistWidget )
@@ -348,7 +347,6 @@ MainInterface::~MainInterface()
     QVLCTools::saveWidgetPosition(settings, this);
     settings->endGroup();
 
-
     /* Unregister callbacks */
     var_DelCallback( p_intf->p_libvlc, "intf-show", IntfShowCB, p_intf );
     var_DelCallback( p_intf->p_libvlc, "intf-popupmenu", PopupMenuCB, p_intf );
@@ -583,7 +581,7 @@ inline void MainInterface::initSystray()
         if( b_systrayAvailable )
         {
             b_systrayWanted = true;
-            b_shouldHide = true;
+            b_hideAfterCreation = true;
         }
         else
             msg_Err( p_intf, "cannot start minimized without system tray bar" );
@@ -812,7 +810,6 @@ void MainInterface::debug()
             msg_Dbg( p_intf, "Status minimumsize: %i - %i", statusBar()->minimumSize().height(), statusBar()->minimumSize().width() );
     msg_Dbg( p_intf, "minimumsize: %i - %i", minimumSize().height(), minimumSize().width() );
 
-
     /*if( videoWidget && videoWidget->isVisible() )
     {
         msg_Dbg( p_intf, "size: %i - %i", size().height(), size().width() );
index e1bac327c23df2bc69961950ac768621ae4b5819..12d4303c6803d0cbeb79ca2490eaf56ad545cb61 100644 (file)
@@ -167,7 +167,7 @@ private:
     int                  i_visualmode;        ///< Visual Mode
     pl_dock_e            i_pl_dock;
     int                  i_bg_height;         ///< Save height of bgWidget
-    bool                 b_shouldHide;
+    bool                 b_hideAfterCreation;
 
 #ifdef WIN32
     HIMAGELIST himl;