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

Method SetOtherResponse

Modules/Forms/src/mitkQuestionWithOtherOption.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void QuestionWithOtherOption::SetOtherResponse(const std::string& response)
58{
59 if (!m_HasOtherOption)
60 mitkThrow() << "Setting \"Other\" response is disallowed!";
61
62 QuestionWithOptions::ClearResponses();
63 m_OtherResponse = response;
64}
65
66std::vector<std::string> QuestionWithOtherOption::GetResponsesAsStrings() const
67{

Callers 2

OnIdClickedMethod · 0.80
OnEditingFinishedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected