]> git.sesse.net Git - vlc/commitdiff
Qt: MIM: code cosmetics
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Mar 2015 16:23:54 +0000 (17:23 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Mar 2015 16:26:01 +0000 (17:26 +0100)
modules/gui/qt4/input_manager.cpp

index 8d22701c751be32cad9e73c2c3eb1a6216f20544..0976e937b3c5da5e23eff277b8984ae2ce067236 100644 (file)
@@ -1014,17 +1014,23 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
 {
     im = new InputManager( this, p_intf );
 
+    /* Audio Menu */
+    menusAudioMapper = new QSignalMapper();
+    CONNECT( menusAudioMapper, mapped(QString), this, menusUpdateAudio( QString ) );
+
+    /* Core Callbacks */
     var_AddCallback( THEPL, "item-change", ItemChanged, im );
     var_AddCallback( THEPL, "activity", PLItemChanged, this );
     var_AddCallback( THEPL, "leaf-to-parent", LeafToParent, this );
     var_AddCallback( THEPL, "playlist-item-append", PLItemAppended, this );
     var_AddCallback( THEPL, "playlist-item-deleted", PLItemRemoved, this );
+
+    /* Core Callbacks to widget */
     random.addCallback( this, SLOT(notifyRandom(bool)) );
     repeat.addCallback( this, SLOT(notifyRepeatLoop(bool)) );
-    loop.addCallback( this, SLOT(notifyRepeatLoop(bool)) );
-
+    loop.addCallback(   this, SLOT(notifyRepeatLoop(bool)) );
     volume.addCallback( this, SLOT(notifyVolume(float)) );
-    mute.addCallback( this, SLOT(notifyMute(bool)) );
+    mute.addCallback(   this, SLOT(notifyMute(bool)) );
 
     /* Warn our embedded IM about input changes */
     DCONNECT( this, inputChanged( input_thread_t * ),
@@ -1034,10 +1040,6 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
     p_input = playlist_CurrentInput( THEPL );
     if( p_input )
         emit inputChanged( p_input );
-
-    /* Audio Menu */
-    menusAudioMapper = new QSignalMapper();
-    CONNECT( menusAudioMapper, mapped(QString), this, menusUpdateAudio( QString ) );
 }
 
 MainInputManager::~MainInputManager()