| 1135 | } |
| 1136 | |
| 1137 | void 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 | |
| 1153 | void QmitkMultiLabelTreeModel::OnGroupRemoved(GroupIndexType groupIndex) |
| 1154 | { |
no test coverage detected