Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit cf9c206c authored by Laurent Montel's avatar Laurent Montel 😁

Assign layout directly

parent 9306d79e
......@@ -133,7 +133,7 @@ ComposerPageGeneralTab::ComposerPageGeneralTab(QWidget *parent)
: ConfigModuleTab(parent)
{
// Main layout
QHBoxLayout *hb1 = new QHBoxLayout(); // box with 2 columns
QHBoxLayout *hb1 = new QHBoxLayout(this); // box with 2 columns
QVBoxLayout *vb1 = new QVBoxLayout(); // first with 2 groupboxes
QVBoxLayout *vb2 = new QVBoxLayout(); // second with 1 groupbox
......@@ -472,7 +472,6 @@ ComposerPageGeneralTab::ComposerPageGeneralTab(QWidget *parent)
hb1->addLayout(vb1);
hb1->addLayout(vb2);
setLayout(hb1);
}
void ComposerPage::GeneralTab::doResetToDefaultsOther()
......
......@@ -96,7 +96,7 @@ void VacationScriptIndicatorWidget::setVacationScriptActive(bool active, const Q
void VacationScriptIndicatorWidget::createIndicator()
{
delete mBoxLayout;
mBoxLayout = new QHBoxLayout;
mBoxLayout = new QHBoxLayout(this);
mBoxLayout->setMargin(0);
mBoxLayout->setSpacing(0);
mInfo = new VacationLabel(i18np("Out of office reply active on server", "Out of office reply active on servers", mServerActive.count()));
......@@ -107,7 +107,6 @@ void VacationScriptIndicatorWidget::createIndicator()
connect(lab, &ServerLabel::clicked, this, &VacationScriptIndicatorWidget::clicked);
mBoxLayout->addWidget(lab);
}
setLayout(mBoxLayout);
}
void VacationScriptIndicatorWidget::slotVacationLabelClicked()
......
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