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

Method Reset

Modules/FormsUI/src/QmitkForm.cpp:137–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void QmitkForm::Reset()
138{
139 int numberOfSections = m_Ui->sectionWidget->count();
140
141 for (int sectionIndex = 0; sectionIndex < numberOfSections; ++sectionIndex)
142 {
143 auto sectionWidget = m_Ui->sectionWidget->widget(sectionIndex);
144 auto questionWidgets = sectionWidget->findChildren<QmitkQuestionWidget*>();
145
146 for (auto questionWidget : questionWidgets)
147 questionWidget->Reset();
148 }
149
150 m_HasBeenSubmitted = false;
151 m_Ui->sectionWidget->setCurrentIndex(0);
152
153 this->Update();
154}
155
156void QmitkForm::Update()
157{

Callers 3

SetFormMethod · 0.95
OnClearButtonClickedMethod · 0.95

Calls 2

UpdateMethod · 0.95
countMethod · 0.80

Tested by

no test coverage detected