| 455 | } |
| 456 | |
| 457 | void 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. |
no test coverage detected