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

Method OnClearButtonClicked

Modules/FormsUI/src/QmitkForm.cpp:351–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351void QmitkForm::OnClearButtonClicked()
352{
353 QMessageBox messageBox;
354 messageBox.setWindowTitle("Clear form?");
355 messageBox.setIcon(QMessageBox::Question);
356 messageBox.setText("This will remove your answers from all\nquestions and cannot be undone.");
357 messageBox.addButton("Cancel", QMessageBox::NoRole);
358 auto clearFormButton = messageBox.addButton("Clear form", QMessageBox::YesRole);
359
360 messageBox.exec();
361
362 if (messageBox.clickedButton() == clearFormButton)
363 this->Reset();
364}
365
366void QmitkForm::OnSubmitAnotherButtonClicked()
367{

Callers

nothing calls this directly

Calls 3

ResetMethod · 0.95
setIconMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected