Commit ec6df3cd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, playlist: rename a method to match Qt's style

parent a0c06b1d
...@@ -230,7 +230,7 @@ void PlaylistWidget::changeView( const QModelIndex& index ) ...@@ -230,7 +230,7 @@ void PlaylistWidget::changeView( const QModelIndex& index )
{ {
searchEdit->clear(); searchEdit->clear();
locationBar->setIndex( index ); locationBar->setIndex( index );
int i = mainView->getViewNumber(); int i = mainView->currentViewIndex();
viewActions[i]->setChecked(true); viewActions[i]->setChecked(true);
} }
......
...@@ -378,7 +378,7 @@ void StandardPLPanel::showView( int i_view ) ...@@ -378,7 +378,7 @@ void StandardPLPanel::showView( int i_view )
gotoPlayingItem(); gotoPlayingItem();
} }
const int StandardPLPanel::getViewNumber() const int StandardPLPanel::currentViewIndex()
{ {
if( currentView == treeView ) if( currentView == treeView )
return TREE_VIEW; return TREE_VIEW;
......
...@@ -67,7 +67,7 @@ public: ...@@ -67,7 +67,7 @@ public:
PICTUREFLOW_VIEW, PICTUREFLOW_VIEW,
VIEW_COUNT }; VIEW_COUNT };
const int getViewNumber(); const int currentViewIndex();
protected: protected:
......
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