16 const QVariantMap &preferences,
22 QVBoxLayout *dlgLayout =
new QVBoxLayout(
this);
28 buttons =
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Reset);
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);
38 connect(
buttons, &QDialogButtonBox::accepted,
this, &KisMediaEncoderPreferencesDialog::accept);
39 connect(
buttons, &QDialogButtonBox::rejected,
this, &KisMediaEncoderPreferencesDialog::reject);
41 QPushButton *resetButton =
buttons->button(QDialogButtonBox::Reset);