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

Method indexOfGroup

Modules/SegmentationUI/src/QmitkMultiLabelTreeModel.cpp:612–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612QModelIndex QmitkMultiLabelTreeModel::indexOfGroup(mitk::MultiLabelSegmentation::GroupIndexType groupIndex) const
613{
614 auto relevantItem = GetGroupItem(groupIndex, this->m_RootItem.get());
615
616 if (nullptr == relevantItem) QModelIndex();
617
618 return GetIndexByItem(relevantItem, this);
619}
620
621QModelIndex QmitkMultiLabelTreeModel::parent(const QModelIndex &child) const
622{

Callers

nothing calls this directly

Calls 3

GetGroupItemFunction · 0.85
GetIndexByItemFunction · 0.85
QModelIndexClass · 0.50

Tested by

no test coverage detected