From 639eca0ef43b79aba3deeaf2c414c3556c33c7aa Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 20 Oct 2011 19:27:07 +0200 Subject: [PATCH] Qt: rename playlist root* functions and getters for clarity --- modules/gui/qt4/components/playlist/playlist.cpp | 4 ++-- modules/gui/qt4/components/playlist/playlist_model.cpp | 2 +- modules/gui/qt4/components/playlist/playlist_model.hpp | 2 +- modules/gui/qt4/components/playlist/standardpanel.cpp | 6 +++--- modules/gui/qt4/components/playlist/standardpanel.hpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp index 019bad47eb..382a7efc7d 100644 --- a/modules/gui/qt4/components/playlist/playlist.cpp +++ b/modules/gui/qt4/components/playlist/playlist.cpp @@ -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 ); diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp index 183038cf7e..a55dd9beb6 100644 --- a/modules/gui/qt4/components/playlist/playlist_model.cpp +++ b/modules/gui/qt4/components/playlist/playlist_model.cpp @@ -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 ) diff --git a/modules/gui/qt4/components/playlist/playlist_model.hpp b/modules/gui/qt4/components/playlist/playlist_model.hpp index e4dab02d65..4caab5d060 100644 --- a/modules/gui/qt4/components/playlist/playlist_model.hpp +++ b/modules/gui/qt4/components/playlist/playlist_model.hpp @@ -116,7 +116,7 @@ public: signals: void currentIndexChanged( const QModelIndex& ); - void rootChanged(); + void rootIndexChanged(); public slots: virtual void activateItem( const QModelIndex &index ); diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index 95fa90e587..9ae14e96af 100644 --- a/modules/gui/qt4/components/playlist/standardpanel.cpp +++ b/modules/gui/qt4/components/playlist/standardpanel.cpp @@ -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 ) diff --git a/modules/gui/qt4/components/playlist/standardpanel.hpp b/modules/gui/qt4/components/playlist/standardpanel.hpp index 6b936a0c8b..15128dee3d 100644 --- a/modules/gui/qt4/components/playlist/standardpanel.hpp +++ b/modules/gui/qt4/components/playlist/standardpanel.hpp @@ -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: -- 2.39.2