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

Method OnGroupRemoved

Modules/SegmentationUI/src/QmitkMultiLabelTreeModel.cpp:1153–1165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1151}
1152
1153void QmitkMultiLabelTreeModel::OnGroupRemoved(GroupIndexType groupIndex)
1154{
1155 if (m_ShowGroups)
1156 {
1157 m_ModelUpdateOngoing = true;
1158 this->beginRemoveRows(QModelIndex(), groupIndex, groupIndex);
1159 auto root = m_RootItem.get();
1160 root->RemoveChild(groupIndex);
1161 this->endRemoveRows();
1162 m_ModelUpdateOngoing = false;
1163 emit modelChanged();
1164 }
1165}
1166
1167void QmitkMultiLabelTreeModel::SetAllowVisibilityModification(bool vmod)
1168{

Callers 1

ITKEventHandlerMethod · 0.95

Calls 2

QModelIndexClass · 0.50
RemoveChildMethod · 0.45

Tested by

no test coverage detected