Commit 1fbd0f24 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: MIM: code cosmetics

parent 53d547df
......@@ -1014,15 +1014,21 @@ 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)) );
volume.addCallback( this, SLOT(notifyVolume(float)) );
mute.addCallback( this, SLOT(notifyMute(bool)) );
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment