#9023 Performance : Optionally avoid emitting update signals during update

Do not notify editors when building tree in PdmUiTreeViewQModel::setPdmItemRoot()
This commit is contained in:
Magne Sjaastad
2022-06-07 15:26:31 +02:00
parent 5b4434439e
commit 5eafa98038
8 changed files with 29 additions and 19 deletions

View File

@@ -284,7 +284,8 @@ void PdmUiTreeView::updateSubTree( const QModelIndex& index )
auto uiItem = uiItemFromModelIndex( index );
if ( uiItem )
{
m_treeViewEditor->updateSubTree( uiItem );
bool notifyEditors = true;
m_treeViewEditor->updateSubTree( uiItem, notifyEditors );
}
}