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

Method UpdateProgressBar

Modules/SegmentationUI/src/QmitkSegmentationTaskListWidget.cpp:457–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457void QmitkSegmentationTaskListWidget::UpdateProgressBar()
458{
459 int progress = 0;
460
461 for (size_t i = 0; i < m_TaskList->GetNumberOfTasks(); ++i)
462 {
463 if (m_TaskList->IsDone(i))
464 ++progress;
465 }
466
467 m_Ui->progressBar->setValue(progress);
468}
469
470/* Provided that a valid segmentation task list is currently selected and the
471 * widget is in its default state, update all controls accordingly.

Callers 2

OnTaskListChangedMethod · 0.95

Calls 2

GetNumberOfTasksMethod · 0.80
IsDoneMethod · 0.80

Tested by

no test coverage detected