| 465 | } |
| 466 | |
| 467 | mitk::Label* QmitkMultiLabelInspector::GetCurrentLabel() const |
| 468 | { |
| 469 | auto currentIndex = this->m_Controls->view->currentIndex(); |
| 470 | auto labelVariant = currentIndex.data(QmitkMultiLabelTreeModel::ItemModelRole::LabelDataRole); |
| 471 | mitk::Label::Pointer currentIndexLabel = nullptr; |
| 472 | |
| 473 | if (labelVariant.isValid()) |
| 474 | { |
| 475 | auto uncastedLabel = labelVariant.value<void*>(); |
| 476 | currentIndexLabel = static_cast<mitk::Label*>(uncastedLabel); |
| 477 | } |
| 478 | return currentIndexLabel; |
| 479 | } |
| 480 | |
| 481 | QmitkMultiLabelInspector::IndexLevelType QmitkMultiLabelInspector::GetCurrentLevelType() const |
| 482 | { |
no test coverage detected