| 139 | } |
| 140 | |
| 141 | void QmitkMultipleChoiceQuestionWidget::OnIdClicked(int id) |
| 142 | { |
| 143 | if (id == m_OtherId) |
| 144 | { |
| 145 | m_Question->SetOtherResponse(m_OtherLineEdit->text().toStdString()); |
| 146 | m_OtherLineEdit->setFocus(); |
| 147 | } |
| 148 | else |
| 149 | { |
| 150 | m_Question->SetResponse(static_cast<size_t>(id)); |
| 151 | } |
| 152 | |
| 153 | if (m_ClearButton != nullptr) |
| 154 | m_ClearButton->show(); |
| 155 | |
| 156 | if (m_Question->IsRequired()) |
| 157 | this->SetRequirementVisible(!m_Question->IsComplete()); |
| 158 | } |
| 159 | |
| 160 | void QmitkMultipleChoiceQuestionWidget::OnTextEdited(const QString&) |
| 161 | { |
nothing calls this directly
no test coverage detected