summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-06 08:25:56 +0200
committerMontel Laurent <[email protected]>2017-09-06 08:25:56 +0200
commit6ccbb3e22db4e231880635b7ec3fd14aa570fc27 (patch)
tree0c3e63322c22df45832e5b93eb2734892e072f00
parent4ae4d7545011cf173d37cd643096de011336c474 (diff)
Add parent directly
-rw-r--r--plugins/customtoolsplugins/shorturlplugin/shorturl/tests/shorturlmainwidgetng.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/customtoolsplugins/shorturlplugin/shorturl/tests/shorturlmainwidgetng.cpp b/plugins/customtoolsplugins/shorturlplugin/shorturl/tests/shorturlmainwidgetng.cpp
index 0b41717..088c5c0 100644
--- a/plugins/customtoolsplugins/shorturlplugin/shorturl/tests/shorturlmainwidgetng.cpp
+++ b/plugins/customtoolsplugins/shorturlplugin/shorturl/tests/shorturlmainwidgetng.cpp
@@ -27,8 +27,7 @@
ShortUrlMainWidgetNg::ShortUrlMainWidgetNg(QWidget *parent)
: QWidget(parent)
{
- QVBoxLayout *lay = new QVBoxLayout;
- setLayout(lay);
+ QVBoxLayout *lay = new QVBoxLayout(this);
mConfigWidget = new ShortUrlConfigureWidget;
lay->addWidget(mConfigWidget);