if( p_input && !( p_input->b_dead || !vlc_object_alive( p_input ) ) )
{
PLItem *item = findByInput( rootItem, input_GetItem( p_input )->i_id );
- if( item ) emit currentChanged( index( item, 0 ) );
+ if( item ) emit currentIndexChanged( index( item, 0 ) );
}
processInputItemUpdate( input_GetItem( p_input ) );
}
endInsertRows();
if( newItem->inputItem() == THEMIM->currentInputItem() )
- emit currentChanged( index( newItem, 0 ) );
+ emit currentIndexChanged( index( newItem, 0 ) );
}
void PLModel::rebuild( playlist_item_t *p_root )
if( i_popup_item > -1 )
{
PLItem *popupitem = findById( rootItem, i_popup_item );
- if( popupitem ) emit currentChanged( index( popupitem, 0 ) );
+ if( popupitem ) emit currentIndexChanged( index( popupitem, 0 ) );
/* reset i_popup_item as we don't show it as selected anymore anyway */
i_popup_item = -1;
}
- else if( currentIndex().isValid() ) emit currentChanged( currentIndex() );
+ else if( currentIndex().isValid() ) emit currentIndexChanged( currentIndex() );
}
void PLModel::search( const QString& search_text, const QModelIndex & idx, bool b_recursive )
DCONNECT( THEMIM, leafBecameParent( int ),
this, browseInto( int ) );
- CONNECT( model, currentChanged( const QModelIndex& ),
+ CONNECT( model, currentIndexChanged( const QModelIndex& ),
this, handleExpansion( const QModelIndex& ) );
CONNECT( model, rootChanged(), this, browseInto() );