]> git.sesse.net Git - vlc/commitdiff
Qt: remove debug and cosmetics
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 25 Feb 2010 18:58:14 +0000 (19:58 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 28 Feb 2010 09:58:20 +0000 (10:58 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/qt4.cpp

index 03fc382a6550ef7addd0ad83962542da4b4b2697..7b7d2939825c142e5b7ef2b2eaba3035d980ee6b 100644 (file)
@@ -124,7 +124,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     i_visualmode = var_InheritInteger( p_intf, "qt-display-mode" );
 
     /* Do we want anoying popups or not */
-    notificationEnabled = (bool)var_InheritBool( p_intf, "qt-notification" );
+    notificationEnabled = var_InheritBool( p_intf, "qt-notification" );
 
     /* Set the other interface settings */
     settings = getSettings();
@@ -213,15 +213,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
 
     /* END CONNECTS ON IM */
 
-    /************
-     * Callbacks
-     ************/
-    var_AddCallback( p_intf->p_libvlc, "intf-show", IntfShowCB, p_intf );
-
-    /* Register callback for the intf-popupmenu variable */
-    var_AddCallback( p_intf->p_libvlc, "intf-popupmenu", PopupMenuCB, p_intf );
-
-
     /* VideoWidget connects for asynchronous calls */
     connect( this, SIGNAL(askGetVideo(WId*,int*,int*,unsigned*,unsigned *)),
              this, SLOT(getVideoSlot(WId*,int*,int*,unsigned*,unsigned*)),
@@ -251,6 +242,15 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     /** END of CONNECTS**/
 
 
+    /************
+     * Callbacks
+     ************/
+    var_AddCallback( p_intf->p_libvlc, "intf-show", IntfShowCB, p_intf );
+
+    /* Register callback for the intf-popupmenu variable */
+    var_AddCallback( p_intf->p_libvlc, "intf-popupmenu", PopupMenuCB, p_intf );
+
+
     /**** FINAL SIZING and placement of interface */
     settings->beginGroup( "MainWindow" );
     QVLCTools::restoreWidgetPosition( settings, this, QSize(380, 60) );
@@ -298,8 +298,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
 
 MainInterface::~MainInterface()
 {
-    msg_Dbg( p_intf, "Destroying the main interface" );
-
     /* Unsure we hide the videoWidget before destroying it */
     if( stackCentralOldState == VIDEO_TAB )
         showBg();
index d3d9ad266cbad4ef94f6681d2d42db219c07959d..276aabf86331f40990c4b5148840292b3c4e8700 100644 (file)
@@ -471,15 +471,12 @@ static void *Thread( void *obj )
     app.exec();
 
     /* And quit */
-    msg_Dbg( p_intf, "Quitting the Qt4 Interface" );
-
     QApplication::closeAllWindows();
 
     if (p_mi != NULL)
     {
         /* FIXME: are we sure that video window is already destroyed? */
 
-        msg_Dbg (p_intf, "destroying the main Qt4 interface");
         p_intf->p_sys->p_mi = NULL;
         /* Destroy first the main interface because it is connected to some
            slots in the MainInputManager */