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

Method OnGroupAdded

Modules/SegmentationUI/src/QmitkMultiLabelTreeModel.cpp:1121–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119}
1120
1121void QmitkMultiLabelTreeModel::OnGroupAdded(GroupIndexType groupIndex)
1122{
1123 if (m_ShowGroups)
1124 {
1125 m_ModelUpdateOngoing = true;
1126 this->beginInsertRows(QModelIndex(), groupIndex, groupIndex);
1127 auto rootItem = m_RootItem.get();
1128 auto groupItem = new QmitkMultiLabelSegTreeItem(QmitkMultiLabelSegTreeItem::ItemType::Group, rootItem);
1129 rootItem->InsertChild(groupIndex, groupItem);
1130 this->GenerateInternalGroupTree(groupIndex, groupItem);
1131 this->endInsertRows();
1132 m_ModelUpdateOngoing = false;
1133 emit modelChanged();
1134 }
1135}
1136
1137void QmitkMultiLabelTreeModel::OnGroupModified(GroupIndexType groupIndex)
1138{

Callers 1

ITKEventHandlerMethod · 0.95

Calls 3

QModelIndexClass · 0.50
InsertChildMethod · 0.45

Tested by

no test coverage detected