Commit d0e21cae authored by Laurent Montel's avatar Laurent Montel 😁

Add parent to qdialogbuttonbox

parent 75308847
...@@ -33,7 +33,7 @@ PimSettingExporterConfigureDialog::PimSettingExporterConfigureDialog(QWidget *pa ...@@ -33,7 +33,7 @@ PimSettingExporterConfigureDialog::PimSettingExporterConfigureDialog(QWidget *pa
mConfigureWidget->setObjectName(QStringLiteral("configurewidget")); mConfigureWidget->setObjectName(QStringLiteral("configurewidget"));
layout->addWidget(mConfigureWidget); layout->addWidget(mConfigureWidget);
QDialogButtonBox *button = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults); QDialogButtonBox *button = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults, this);
button->setObjectName(QStringLiteral("buttonbox")); button->setObjectName(QStringLiteral("buttonbox"));
connect(button, &QDialogButtonBox::accepted, this, &PimSettingExporterConfigureDialog::slotAccepted); connect(button, &QDialogButtonBox::accepted, this, &PimSettingExporterConfigureDialog::slotAccepted);
connect(button, &QDialogButtonBox::rejected, this, &PimSettingExporterConfigureDialog::reject); connect(button, &QDialogButtonBox::rejected, this, &PimSettingExporterConfigureDialog::reject);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment