Commit 639eca0e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: rename playlist root* functions and getters for clarity

parent 139cf222
......@@ -159,8 +159,8 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
/* 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 );
......
......@@ -676,7 +676,7 @@ void PLModel::rebuild( playlist_item_t *p_root )
/* And signal the view */
reset();
if( p_root ) emit rootChanged();
if( p_root ) emit rootIndexChanged();
}
void PLModel::takeItem( PLItem *item )
......
......@@ -116,7 +116,7 @@ public:
signals:
void currentIndexChanged( const QModelIndex& );
void rootChanged();
void rootIndexChanged();
public slots:
virtual void activateItem( const QModelIndex &index );
......
......@@ -84,9 +84,9 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
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()
......@@ -179,7 +179,7 @@ void StandardPLPanel::searchDelayed( const QString& searchText )
/* 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 )
......
......@@ -102,7 +102,7 @@ private:
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:
......
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