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

Method OnIdClicked

Modules/FormsUI/src/QmitkMultipleChoiceQuestionWidget.cpp:141–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void 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
160void QmitkMultipleChoiceQuestionWidget::OnTextEdited(const QString&)
161{

Callers

nothing calls this directly

Calls 7

SetOtherResponseMethod · 0.80
textMethod · 0.80
showMethod · 0.80
IsRequiredMethod · 0.80
SetRequirementVisibleMethod · 0.80
SetResponseMethod · 0.45
IsCompleteMethod · 0.45

Tested by

no test coverage detected