[vlc-commits] commit: Qt4: showslide scroll to row instead of column (Ilkka Ollakka )

git at videolan.org git at videolan.org
Sat Oct 30 21:04:14 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Oct 30 22:03:51 2010 +0300| [b7505eeb907d393dabbf3fa447679d76eb5d2154] | committer: Ilkka Ollakka 

Qt4: showslide scroll to row instead of column

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7505eeb907d393dabbf3fa447679d76eb5d2154
---

 modules/gui/qt4/components/playlist/views.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/views.cpp b/modules/gui/qt4/components/playlist/views.cpp
index 25973fa..e7e7189 100644
--- a/modules/gui/qt4/components/playlist/views.cpp
+++ b/modules/gui/qt4/components/playlist/views.cpp
@@ -403,8 +403,7 @@ QRect PicFlowView::visualRect(const QModelIndex &index ) const
 
 void PicFlowView::scrollTo(const QModelIndex &index, QAbstractItemView::ScrollHint)
 {
-    if( index.column() >= 0 && picFlow->slideCount() > 0 )
-        picFlow->showSlide( index.column() );
+     picFlow->showSlide( index.row() );
 }
 
 QModelIndex PicFlowView::indexAt(const QPoint &) const



More information about the vlc-commits mailing list