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

Method GetParentNode

Modules/QtWidgets/src/QmitkDataStorageTreeModel.cpp:719–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719mitk::DataNode *QmitkDataStorageTreeModel::GetParentNode(const mitk::DataNode *node) const
720{
721 mitk::DataNode *dataNode = nullptr;
722
723 mitk::DataStorage::SetOfObjects::ConstPointer _Sources = m_DataStorage.Lock()->GetSources(node);
724
725 if (_Sources->Size() > 0)
726 dataNode = _Sources->front();
727
728 return dataNode;
729}
730
731bool QmitkDataStorageTreeModel::setData(const QModelIndex &index, const QVariant &value, int role)
732{

Callers 6

AddNodeInternalMethod · 0.95

Calls 4

GetSourcesMethod · 0.80
frontMethod · 0.80
LockMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected