| 47 | } |
| 48 | |
| 49 | void 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 | |
| 63 | void QmitkLinearScaleQuestionWidget::Reset() |
| 64 | { |
nothing calls this directly
no test coverage detected