summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-01 12:01:45 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-01 12:01:45 (GMT)
commit35abb9eba2173069d82ca5628dcc8a15e9192c85 (patch)
tree9aa54034502fa4fd6835402b90ee908df8653c2f
parentc3b9fdac865acf49492146fc5970f8a934df152a (diff)
Add parent directly
-rw-r--r--src/widgets/gravatardownloadpixmapdialog.cpp3
-rw-r--r--src/widgets/gravatardownloadpixmapwidget.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/widgets/gravatardownloadpixmapdialog.cpp b/src/widgets/gravatardownloadpixmapdialog.cpp
index 2d40287..d021bed 100644
--- a/src/widgets/gravatardownloadpixmapdialog.cpp
+++ b/src/widgets/gravatardownloadpixmapdialog.cpp
@@ -27,8 +27,7 @@ using namespace Gravatar;
GravatarDownloadPixmapDialog::GravatarDownloadPixmapDialog(QWidget *parent)
: QDialog(parent)
{
- QVBoxLayout *mainLayout = new QVBoxLayout;
- setLayout(mainLayout);
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
mGravatarDownloadPixmapWidget = new Gravatar::GravatarDownloadPixmapWidget(this);
mGravatarDownloadPixmapWidget->setObjectName(QStringLiteral("gravatarwidget"));
mainLayout->addWidget(mGravatarDownloadPixmapWidget);
diff --git a/src/widgets/gravatardownloadpixmapwidget.cpp b/src/widgets/gravatardownloadpixmapwidget.cpp
index 512c3f6..8aa331a 100644
--- a/src/widgets/gravatardownloadpixmapwidget.cpp
+++ b/src/widgets/gravatardownloadpixmapwidget.cpp
@@ -31,8 +31,7 @@ using namespace Gravatar;
GravatarDownloadPixmapWidget::GravatarDownloadPixmapWidget(QWidget *parent)
: QWidget(parent)
{
- QVBoxLayout *mainLayout = new QVBoxLayout;
- setLayout(mainLayout);
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
QHBoxLayout *hbox = new QHBoxLayout;
mainLayout->addLayout(hbox);
QLabel *lab = new QLabel(i18n("Email:"));