Commit 40a9fe9b authored by Rafaël Carré's avatar Rafaël Carré

qt4: removes useless functionnality. fix #1330

parent 1245f808
...@@ -182,17 +182,8 @@ void StandardPLPanel::toggleRandom() ...@@ -182,17 +182,8 @@ void StandardPLPanel::toggleRandom()
void StandardPLPanel::handleExpansion( const QModelIndex &index ) void StandardPLPanel::handleExpansion( const QModelIndex &index )
{ {
QModelIndex parent;
if( model->isCurrent( index ) ) if( model->isCurrent( index ) )
{
view->scrollTo( index, QAbstractItemView::EnsureVisible ); view->scrollTo( index, QAbstractItemView::EnsureVisible );
parent = index;
while( parent.isValid() )
{
view->setExpanded( parent, true );
parent = model->parent( parent );
}
}
} }
void StandardPLPanel::setCurrentRootId( int _new ) void StandardPLPanel::setCurrentRootId( int _new )
......
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