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

Method QmitkForm

Modules/FormsUI/src/QmitkForm.cpp:27–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using Self = QmitkForm;
26
27QmitkForm::QmitkForm(QWidget* parent)
28 : QWidget(parent),
29 m_Ui(std::make_unique<Ui::QmitkForm>()),
30 m_Form(nullptr),
31 m_HasBeenSubmitted(false)
32{
33 this->setStyleSheet(
34 "QFrame[frameShape=\"1\"] { border-radius: 6px; }"
35 "QComboBox, QComboBox::drop-down, QLineEdit, QPushButton { border-radius: 4px; }"
36 );
37
38 m_Ui->setupUi(this);
39
40 connect(m_Ui->sectionWidget, &QStackedWidget::currentChanged, this, [this](int) { this->Update(); });
41
42 connect(m_Ui->backButton, &QPushButton::clicked, this, &Self::OnBackButtonClicked);
43 connect(m_Ui->nextButton, &QPushButton::clicked, this, &Self::OnNextButtonClicked);
44 connect(m_Ui->submitButton, &QPushButton::clicked, this, &Self::OnSubmitButtonClicked);
45 connect(m_Ui->clearButton, &QPushButton::clicked, this, &Self::OnClearButtonClicked);
46 connect(m_Ui->submitAnotherButton, &QPushButton::clicked, this, &Self::OnSubmitAnotherButtonClicked);
47}
48
49QmitkForm::QmitkForm(Form* form, QWidget* parent)
50 : QmitkForm(parent)

Callers

nothing calls this directly

Calls 2

UpdateMethod · 0.95
SetFormMethod · 0.95

Tested by

no test coverage detected