Commit 6f2962f5 authored by Laurent Montel's avatar Laurent Montel 😁

Assign parent directly. Remove setLayout(...) when not necessary

parent e150c6bb
......@@ -1268,7 +1268,6 @@ ComposerPageAutoCorrectionTab::ComposerPageAutoCorrectionTab(QWidget *parent)
autocorrectionWidget->setAutoCorrection(KMKernel::self()->composerAutoCorrection());
}
vlay->addWidget(autocorrectionWidget);
setLayout(vlay);
connect(autocorrectionWidget, &PimCommon::AutoCorrectionWidget::changed, this, &ConfigModuleTab::slotEmitChanged);
}
......@@ -1300,7 +1299,6 @@ ComposerPageAutoImageResizeTab::ComposerPageAutoImageResizeTab(QWidget *parent)
vlay->setMargin(0);
autoResizeWidget = new MessageComposer::ImageScalingWidget(this);
vlay->addWidget(autoResizeWidget);
setLayout(vlay);
connect(autoResizeWidget, &MessageComposer::ImageScalingWidget::changed, this, &ConfigModuleTab::slotEmitChanged);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment