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

Method SetQuestion

Modules/FormsUI/src/QmitkLinearScaleQuestionWidget.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void QmitkLinearScaleQuestionWidget::SetQuestion(Question* question)
50{
51 QmitkQuestionWidget::SetQuestion(question);
52
53 auto linearScaleQuestion = dynamic_cast<LinearScaleQuestion*>(question);
54
55 if (linearScaleQuestion == nullptr)
56 mitkThrow() << "QmitkLinearScaleQuestionWidget only accepts LinearScaleQuestion as question type!";
57
58 m_Question = linearScaleQuestion;
59
60 this->CreateWidgets();
61}
62
63void QmitkLinearScaleQuestionWidget::Reset()
64{

Callers

nothing calls this directly

Calls 1

CreateWidgetsMethod · 0.95

Tested by

no test coverage detected