From 563dc32bd8be2d4a6b51082563825a17f33eb888 Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Fri, 18 Jun 2010 16:25:02 +0300 Subject: [PATCH] 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. --- modules/gui/qt4/components/playlist/standardpanel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index 45b9938fc2..fad33cbfff 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 ); } -- 2.39.2