MCPcopy Create free account
hub / github.com/MITK/MITK / UpdateModelData

Method UpdateModelData

Modules/QtWidgets/src/QmitkDataStorageSimpleTreeModel.cpp:371–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void QmitkDataStorageSimpleTreeModel::UpdateModelData()
372{
373 auto dataStorage = m_DataStorage.Lock();
374
375 if (dataStorage.IsNotNull())
376 {
377 auto nodeset = m_NodePredicate != nullptr
378 ? dataStorage->GetSubset(m_NodePredicate)
379 : dataStorage->GetAll();
380
381 for (const auto& node : *nodeset)
382 {
383 this->AddNodeInternal(node);
384 }
385 }
386}

Callers 1

NodeRemovedMethod · 0.95

Calls 5

AddNodeInternalMethod · 0.95
IsNotNullMethod · 0.80
GetSubsetMethod · 0.80
GetAllMethod · 0.80
LockMethod · 0.45

Tested by

no test coverage detected