Added scrollTo() to make sure the expanded item is expanded to root and visibile

This commit is contained in:
Magne Sjaastad 2016-08-11 09:15:43 +02:00
parent 6d95261410
commit 32ded3e05d

View File

@ -319,6 +319,7 @@ void PdmUiTreeViewEditor::setExpanded(const PdmUiItem* uiItem, bool doExpand) co
{
QModelIndex index = m_treeViewModel->findModelIndex(uiItem);
m_treeView->setExpanded(index, doExpand);
m_treeView->scrollTo(index);
}
//--------------------------------------------------------------------------------------------------