summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-11-30 07:54:45 +0100
committerMontel Laurent <[email protected]>2017-11-30 07:54:45 +0100
commit93a4547f8e54a83abed646d5313b5c5a3d8d3e87 (patch)
treef04bf428ec7946cd7cf1dd25b2f7b819f76c3d2a
parentfb824a8abfcde52e65b81a547d785ee0e03d8947 (diff)
Assign parent directly
-rw-r--r--contactthemeeditor/contactconfigurationdialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/contactthemeeditor/contactconfigurationdialog.cpp b/contactthemeeditor/contactconfigurationdialog.cpp
index 7e4aa56..c2d1760 100644
--- a/contactthemeeditor/contactconfigurationdialog.cpp
+++ b/contactthemeeditor/contactconfigurationdialog.cpp
@@ -46,8 +46,7 @@ ContactConfigureDialog::ContactConfigureDialog(QWidget *parent)
QTabWidget *tab = new QTabWidget;
QWidget *w = new QWidget;
- QVBoxLayout *lay = new QVBoxLayout;
- w->setLayout(lay);
+ QVBoxLayout *lay = new QVBoxLayout(w);
mConfigureWidget = new GrantleeThemeEditor::ConfigureWidget;
lay->addWidget(mConfigureWidget);