/* Connect the activation of the selector to a redefining of the PL */
DCONNECT( selector, categoryActivated( playlist_item_t *, bool ),
- mainView, setRoot( playlist_item_t *, bool ) );
- mainView->setRoot( p_root, false );
+ mainView, setRootItem( playlist_item_t *, bool ) );
+ mainView->setRootItem( p_root, false );
/* */
split = new PlaylistSplitter( this );
/* And signal the view */
reset();
- if( p_root ) emit rootChanged();
+ if( p_root ) emit rootIndexChanged();
}
void PLModel::takeItem( PLItem *item )
signals:
void currentIndexChanged( const QModelIndex& );
- void rootChanged();
+ void rootIndexChanged();
public slots:
virtual void activateItem( const QModelIndex &index );
CONNECT( model, currentIndexChanged( const QModelIndex& ),
this, handleExpansion( const QModelIndex& ) );
- CONNECT( model, rootChanged(), this, browseInto() );
+ CONNECT( model, rootIndexChanged(), this, browseInto() );
- setRoot( p_root, false );
+ setRootItem( p_root, false );
}
StandardPLPanel::~StandardPLPanel()
/* Set the root of the new Playlist */
/* This activated by the selector selection */
-void StandardPLPanel::setRoot( playlist_item_t *p_item, bool b )
+void StandardPLPanel::setRootItem( playlist_item_t *p_item, bool b )
{
#ifdef MEDIA_LIBRARY
if( b )
bool eventFilter ( QObject * watched, QEvent * event );
public slots:
- void setRoot( playlist_item_t *, bool );
+ void setRootItem( playlist_item_t *, bool );
void browseInto( const QModelIndex& );
private slots: