[vlc-commits] commit: Qt4: make sure Item can be scrolled to visible even in treeview ( Ilkka Ollakka )

git at videolan.org git at videolan.org
Fri Jun 18 15:26:32 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Jun 18 16:25:02 2010 +0300| [563dc32bd8be2d4a6b51082563825a17f33eb888] | committer: Ilkka Ollakka 

Qt4: make sure Item can be scrolled to visible even in treeview

Change visible-root to currents parent so it's visible. Not sure if
it's best way to do it, but atleast you don't get lost why isn't current
item visible on playlist in tree-mode.

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

 .../gui/qt4/components/playlist/standardpanel.cpp  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 45b9938..fad33cb 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -159,6 +159,7 @@ void StandardPLPanel::gotoPlayingItem()
 void StandardPLPanel::handleExpansion( const QModelIndex& index )
 {
     assert( currentView );
+    browseInto( index.parent() );
     currentView->scrollTo( index );
 }
 



More information about the vlc-commits mailing list