mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added scrollTo() to make sure the expanded item is expanded to root and visibile
This commit is contained in:
parent
6d95261410
commit
32ded3e05d
@ -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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user