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

Method SetTaskList

Modules/SegmentationUI/src/QmitkSegmentationTaskListWidget.cpp:398–415  ·  view source on GitHub ↗

If the segmentation task changed, reset all member variables to expected * default values and reset the file system watcher. */

Source from the content-addressed store, hash-verified

396 * default values and reset the file system watcher.
397 */
398void QmitkSegmentationTaskListWidget::SetTaskList(mitk::SegmentationTaskList* taskList)
399{
400 if (m_TaskList != taskList)
401 {
402 m_TaskList = taskList;
403
404 if (taskList != nullptr)
405 {
406 this->SetCurrentTaskIndex(0);
407 }
408 else
409 {
410 this->SetCurrentTaskIndex(std::nullopt);
411 }
412
413 this->ResetFileSystemWatcher();
414 }
415}
416
417void QmitkSegmentationTaskListWidget::ResetFileSystemWatcher()
418{

Callers 3

OnSelectionChangedMethod · 0.95
OnTaskListChangedMethod · 0.95
OnFindButtonClickedMethod · 0.45

Calls 2

SetCurrentTaskIndexMethod · 0.95

Tested by

no test coverage detected