summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-06 20:10:23 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-06 20:10:23 (GMT)
commit1bbb25876eac0f006758ca0b0d0c981ae669737e (patch)
tree30996c00600df93073a798f31701dd63c19a4e3e
parent8af42949e9d4489874792936091f391de5a86670 (diff)
Add parent directly
-rw-r--r--libsendlater/src/sendlaterdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsendlater/src/sendlaterdialog.cpp b/libsendlater/src/sendlaterdialog.cpp
index 17a6ae3..c675244 100644
--- a/libsendlater/src/sendlaterdialog.cpp
+++ b/libsendlater/src/sendlaterdialog.cpp
@@ -42,6 +42,8 @@ SendLaterDialog::SendLaterDialog(SendLater::SendLaterInfo *info, QWidget *parent
setWindowTitle(i18nc("@title:window", "Send Later"));
setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
+
QWidget *sendLaterWidget = new QWidget(this);
mSendLaterWidget = new Ui::SendLaterWidget;
mSendLaterWidget->setupUi(sendLaterWidget);
@@ -52,8 +54,6 @@ SendLaterDialog::SendLaterDialog(SendLater::SendLaterInfo *info, QWidget *parent
w->setLayout(lay);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
- QVBoxLayout *mainLayout = new QVBoxLayout;
- setLayout(mainLayout);
mOkButton = buttonBox->button(QDialogButtonBox::Ok);
mOkButton->setObjectName(QStringLiteral("okbutton"));
mOkButton->setDefault(true);