[vlc-commits] Qt, playlist: rename a method to match Qt's style
Jean-Baptiste Kempf
git at videolan.org
Fri Mar 11 23:23:53 CET 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar 11 22:47:56 2011 +0100| [ec6df3cd27505196563e0bb2416c135dd27d96e7] | committer: Jean-Baptiste Kempf
Qt, playlist: rename a method to match Qt's style
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec6df3cd27505196563e0bb2416c135dd27d96e7
---
modules/gui/qt4/components/playlist/playlist.cpp | 2 +-
.../gui/qt4/components/playlist/standardpanel.cpp | 2 +-
.../gui/qt4/components/playlist/standardpanel.hpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index 2e09393..3c4d95a 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -230,7 +230,7 @@ void PlaylistWidget::changeView( const QModelIndex& index )
{
searchEdit->clear();
locationBar->setIndex( index );
- int i = mainView->getViewNumber();
+ int i = mainView->currentViewIndex();
viewActions[i]->setChecked(true);
}
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 9ab5992..ae19f71 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -378,7 +378,7 @@ void StandardPLPanel::showView( int i_view )
gotoPlayingItem();
}
-const int StandardPLPanel::getViewNumber()
+const int StandardPLPanel::currentViewIndex()
{
if( currentView == treeView )
return TREE_VIEW;
diff --git a/modules/gui/qt4/components/playlist/standardpanel.hpp b/modules/gui/qt4/components/playlist/standardpanel.hpp
index 2373811..3853918 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.hpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.hpp
@@ -67,7 +67,7 @@ public:
PICTUREFLOW_VIEW,
VIEW_COUNT };
- const int getViewNumber();
+ const int currentViewIndex();
protected:
More information about the vlc-commits
mailing list