18 : QDialog(parent)
20{
21 resize(400, 300);
22 QVBoxLayout *dlgLayout = new QVBoxLayout(this);
23
28 buttons =
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Reset);
29 } else {
30 QLabel *noPreferencesLabel = new QLabel(i18n("This format has no preferences."));
31 noPreferencesLabel->setAlignment(Qt::AlignCenter);
32 noPreferencesLabel->setWordWrap(true);
33 dlgLayout->addWidget(noPreferencesLabel);
34 buttons =
new QDialogButtonBox(QDialogButtonBox::Close);
35 }
36
38 connect(
buttons, &QDialogButtonBox::accepted,
this, &KisMediaEncoderPreferencesDialog::accept);
39 connect(
buttons, &QDialogButtonBox::rejected,
this, &KisMediaEncoderPreferencesDialog::reject);
40
42 if (resetButton) {
44 }
45}
QString buttons(const T &ev)