summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-29 23:26:07 +0200
committerMontel Laurent <[email protected]>2017-09-29 23:26:07 +0200
commita7de50a93f69944b31a5ccf0ca36fbe9f9e42622 (patch)
treecd2fe1b204e41b6d650c45d8132fa52e3ed893b6
parent3b60d9db264e6dd14e901a2e9682dc8b2ceda182 (diff)
Add parent to qdialogbuttonbox
-rw-r--r--contactprintthemeeditor/contactprintthemeconfiguredialog.cpp2
-rw-r--r--contactthemeeditor/contactconfigurationdialog.cpp2
-rw-r--r--grantleethemeeditor/managethemes.cpp2
-rw-r--r--headerthemeeditor/themeconfiguredialog.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/contactprintthemeeditor/contactprintthemeconfiguredialog.cpp b/contactprintthemeeditor/contactprintthemeconfiguredialog.cpp
index 15a57a2..046cd54 100644
--- a/contactprintthemeeditor/contactprintthemeconfiguredialog.cpp
+++ b/contactprintthemeeditor/contactprintthemeconfiguredialog.cpp
@@ -66,7 +66,7 @@ ContactPrintThemeConfigureDialog::ContactPrintThemeConfigureDialog(QWidget *pare
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(tab);
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults);
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
diff --git a/contactthemeeditor/contactconfigurationdialog.cpp b/contactthemeeditor/contactconfigurationdialog.cpp
index c369342..7e4aa56 100644
--- a/contactthemeeditor/contactconfigurationdialog.cpp
+++ b/contactthemeeditor/contactconfigurationdialog.cpp
@@ -65,7 +65,7 @@ ContactConfigureDialog::ContactConfigureDialog(QWidget *parent)
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(tab);
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults);
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
diff --git a/grantleethemeeditor/managethemes.cpp b/grantleethemeeditor/managethemes.cpp
index 9e4ce50..69e913c 100644
--- a/grantleethemeeditor/managethemes.cpp
+++ b/grantleethemeeditor/managethemes.cpp
@@ -73,7 +73,7 @@ ManageThemes::ManageThemes(const QString &relativeThemePath, QWidget *parent)
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(w);
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
connect(buttonBox, &QDialogButtonBox::rejected, this, &ManageThemes::reject);
mainLayout->addWidget(buttonBox);
diff --git a/headerthemeeditor/themeconfiguredialog.cpp b/headerthemeeditor/themeconfiguredialog.cpp
index aac2e45..1667128 100644
--- a/headerthemeeditor/themeconfiguredialog.cpp
+++ b/headerthemeeditor/themeconfiguredialog.cpp
@@ -60,7 +60,7 @@ ThemeConfigureDialog::ThemeConfigureDialog(QWidget *parent)
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(tab);
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults);
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);