8 : QDialog(parent), options_(
options)
10 setWindowTitle(
"SedSat Options");
12 auto* layout =
new QVBoxLayout(
this);
13 auto* formLayout =
new QFormLayout;
17 auto* edit =
new QTextEdit(QString::number(it.value()));
18 edit->setFixedHeight(30);
20 formLayout->addRow(
new QLabel(it.key()), edit);
23 layout->addLayout(formLayout);
26 auto* buttonBox =
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
27 layout->addWidget(buttonBox);
30 connect(buttonBox, &QDialogButtonBox::accepted,
this, &OptionsDialog::accept);
31 connect(buttonBox, &QDialogButtonBox::rejected,
this, &OptionsDialog::reject);