aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-01 20:41:44 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-01 20:41:44 (GMT)
commitef664236984ad7246ac8d176577cafa6d1b1457d (patch)
tree335e51d565e85b088e4cbb8f8860a41e933e78cc
parentb014de580238db71fe9f0eff37121ff86dcf3bc7 (diff)
Add parent
-rw-r--r--src/publishdialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/publishdialog.cpp b/src/publishdialog.cpp
index 06df2e8..ce671ae 100644
--- a/src/publishdialog.cpp
+++ b/src/publishdialog.cpp
@@ -40,8 +40,7 @@ PublishDialog::PublishDialog(QWidget *parent)
: QDialog(parent), d(new Private(this))
{
setWindowTitle(i18n("Select Addresses"));
- QVBoxLayout *layout = new QVBoxLayout;
- setLayout(layout);
+ QVBoxLayout *layout = new QVBoxLayout(this);
QWidget *widget = new QWidget(this);
widget->setObjectName(QStringLiteral("PublishFreeBusy"));
d->mUI.setupUi(widget);
@@ -67,7 +66,7 @@ PublishDialog::PublishDialog(QWidget *parent)
connect(d->mUI.mEmailLineEdit, &QLineEdit::textChanged,
d, &Private::updateItem);
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);