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

Method SelectAll

Modules/QtWidgets/src/QmitkSynchronizedNodeSelectionWidget.cpp:520–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520void 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
538void QmitkSynchronizedNodeSelectionWidget::SetSyncGroup(const GroupSyncIndexType index)
539{

Callers 3

SynchronizeWidgetMethod · 0.80

Calls 5

GetSubsetMethod · 0.80
GetAllMethod · 0.80
LockMethod · 0.45
IsNullMethod · 0.45

Tested by

no test coverage detected