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

Method OnGroupModified

Modules/SegmentationUI/src/QmitkMultiLabelTreeModel.cpp:1137–1151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137void QmitkMultiLabelTreeModel::OnGroupModified(GroupIndexType groupIndex)
1138{
1139 if (m_ShowGroups)
1140 {
1141 if (m_Segmentation->ExistGroup(groupIndex))
1142 {
1143 m_ModelUpdateOngoing = true;
1144 auto groupItem = GetGroupItem(groupIndex, m_RootItem.get());
1145 auto modelIndex = GetIndexByItem(groupItem, this);
1146 emit dataChanged(modelIndex, modelIndex);
1147 m_ModelUpdateOngoing = false;
1148 emit modelChanged();
1149 }
1150 }
1151}
1152
1153void QmitkMultiLabelTreeModel::OnGroupRemoved(GroupIndexType groupIndex)
1154{

Callers 1

ITKEventHandlerMethod · 0.95

Calls 3

GetGroupItemFunction · 0.85
GetIndexByItemFunction · 0.85
ExistGroupMethod · 0.80

Tested by

no test coverage detected