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 ) ...@@ -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 */ /* Connect the activation of the selector to a redefining of the PL */
DCONNECT( selector, categoryActivated( playlist_item_t *, bool ), DCONNECT( selector, categoryActivated( playlist_item_t *, bool ),
mainView, setRoot( playlist_item_t *, bool ) ); mainView, setRootItem( playlist_item_t *, bool ) );
mainView->setRoot( p_root, false ); mainView->setRootItem( p_root, false );
/* */ /* */
split = new PlaylistSplitter( this ); split = new PlaylistSplitter( this );
......
...@@ -676,7 +676,7 @@ void PLModel::rebuild( playlist_item_t *p_root ) ...@@ -676,7 +676,7 @@ void PLModel::rebuild( playlist_item_t *p_root )
/* And signal the view */ /* And signal the view */
reset(); reset();
if( p_root ) emit rootChanged(); if( p_root ) emit rootIndexChanged();
} }
void PLModel::takeItem( PLItem *item ) void PLModel::takeItem( PLItem *item )
......
...@@ -116,7 +116,7 @@ public: ...@@ -116,7 +116,7 @@ public:
signals: signals:
void currentIndexChanged( const QModelIndex& ); void currentIndexChanged( const QModelIndex& );
void rootChanged(); void rootIndexChanged();
public slots: public slots:
virtual void activateItem( const QModelIndex &index ); virtual void activateItem( const QModelIndex &index );
......
...@@ -84,9 +84,9 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -84,9 +84,9 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
CONNECT( model, currentIndexChanged( const QModelIndex& ), CONNECT( model, currentIndexChanged( const QModelIndex& ),
this, handleExpansion( 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() StandardPLPanel::~StandardPLPanel()
...@@ -179,7 +179,7 @@ void StandardPLPanel::searchDelayed( const QString& searchText ) ...@@ -179,7 +179,7 @@ void StandardPLPanel::searchDelayed( const QString& searchText )
/* Set the root of the new Playlist */ /* Set the root of the new Playlist */
/* This activated by the selector selection */ /* 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 #ifdef MEDIA_LIBRARY
if( b ) if( b )
......
...@@ -102,7 +102,7 @@ private: ...@@ -102,7 +102,7 @@ private:
bool eventFilter ( QObject * watched, QEvent * event ); bool eventFilter ( QObject * watched, QEvent * event );
public slots: public slots:
void setRoot( playlist_item_t *, bool ); void setRootItem( playlist_item_t *, bool );
void browseInto( const QModelIndex& ); void browseInto( const QModelIndex& );
private slots: 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