aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-06 13:23:58 +0200
committerMontel Laurent <[email protected]>2017-09-06 13:23:58 +0200
commit4a532e083c6103763891ebacf4828e9ae589df7e (patch)
tree3b2c26b64dc3e97c1556299fe810c10a22ddeb45
parent59eb4b95518763ca3e6a9c40c4b6f45cbbf74d10 (diff)
Assign parent directly. Remove setLayout(...) when not necessary
-rw-r--r--src/widgets/gravatarconfigwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widgets/gravatarconfigwidget.cpp b/src/widgets/gravatarconfigwidget.cpp
index fd418d3..aa8aa2b 100644
--- a/src/widgets/gravatarconfigwidget.cpp
+++ b/src/widgets/gravatarconfigwidget.cpp
@@ -48,8 +48,7 @@ GravatarConfigWidget::GravatarConfigWidget(QWidget *parent)
: QWidget(parent)
, d(new Gravatar::GravatarConfigWidgetPrivate)
{
- QHBoxLayout *mainLayout = new QHBoxLayout;
- setLayout(mainLayout);
+ QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setMargin(0);
d->mEnableGravatarSupport = new QCheckBox(i18n("Enable Gravatar Support"));