| 518 | } |
| 519 | |
| 520 | void QmitkSynchronizedNodeSelectionWidget::SelectAll() |
| 521 | { |
| 522 | auto dataStorage = m_DataStorage.Lock(); |
| 523 | if (dataStorage.IsNull()) |
| 524 | { |
| 525 | return; |
| 526 | } |
| 527 | |
| 528 | auto allNodes = m_NodePredicate ? dataStorage->GetSubset(m_NodePredicate) : dataStorage->GetAll(); |
| 529 | NodeList currentSelection; |
| 530 | for (auto& node : *allNodes) |
| 531 | { |
| 532 | currentSelection.append(node); |
| 533 | } |
| 534 | |
| 535 | this->HandleChangeOfInternalSelection(currentSelection); |
| 536 | } |
| 537 | |
| 538 | void QmitkSynchronizedNodeSelectionWidget::SetSyncGroup(const GroupSyncIndexType index) |
| 539 | { |
no test coverage detected