From 34f8fd6225faf59a2e00dc39aeb0e683b41023fb Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Thu, 25 Aug 2016 08:16:15 +0200 Subject: [PATCH] Set directly parent to layout --- src/tag/tagwidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tag/tagwidget.cpp b/src/tag/tagwidget.cpp index a753c3b..bf36cb6 100644 --- a/src/tag/tagwidget.cpp +++ b/src/tag/tagwidget.cpp @@ -73,8 +73,7 @@ TagWidget::TagWidget(const QList &actionCollections, QWidge : QWidget(parent), d(new MailCommon::TagWidgetPrivate) { - QGridLayout *settings = new QGridLayout; - setLayout(settings); + QGridLayout *settings = new QGridLayout(this); //Stretcher layout for adding some space after the label QVBoxLayout *spacer = new QVBoxLayout();