mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9023 Performance : Optionally avoid emitting update signals during update
Do not notify editors when building tree in PdmUiTreeViewQModel::setPdmItemRoot()
This commit is contained in:
@@ -306,7 +306,7 @@ void PdmUiTreeViewEditor::selectedUiItems( std::vector<PdmUiItem*>& objects )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiTreeViewEditor::updateMySubTree( PdmUiItem* uiItem )
|
||||
void PdmUiTreeViewEditor::updateMySubTree( PdmUiItem* uiItem, bool notifyEditors )
|
||||
{
|
||||
if ( m_treeViewModel )
|
||||
{
|
||||
@@ -324,7 +324,7 @@ void PdmUiTreeViewEditor::updateMySubTree( PdmUiItem* uiItem )
|
||||
}
|
||||
}
|
||||
|
||||
m_treeViewModel->updateSubTree( itemToUpdate );
|
||||
m_treeViewModel->updateSubTree( itemToUpdate, notifyEditors );
|
||||
QModelIndex itemIndex = m_treeViewModel->findModelIndex( itemToUpdate );
|
||||
updateItemDelegateForSubTree( itemIndex );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user