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

Method Create

Modules/FormsUI/src/mitkQuestionWidgetFactory.cpp:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39QmitkQuestionWidget* QuestionWidgetFactory::Create(Question* question, QWidget* parent) const
40{
41 try
42 {
43 auto widget = m_WidgetPrototypes.at(question->GetType())->CreateAnother(parent);
44 widget->SetQuestion(question);
45
46 return widget;
47 }
48 catch (const std::out_of_range&)
49 {
50 }
51
52 return nullptr;
53}

Callers 1

CreateQuestionWidgetsMethod · 0.45

Calls 4

atMethod · 0.80
CreateAnotherMethod · 0.45
GetTypeMethod · 0.45
SetQuestionMethod · 0.45

Tested by

no test coverage detected