Commit 28641b2b authored by Laurent Montel's avatar Laurent Montel 😁

Reduce duplicate margin

parent 068a074a
......@@ -26,12 +26,12 @@ using namespace KSieveUi;
SieveInfoWidget::SieveInfoWidget(QWidget *parent)
: QWidget(parent)
{
QHBoxLayout *lay = new QHBoxLayout;
mInfo = new QTextEdit;
QHBoxLayout *lay = new QHBoxLayout(this);
lay->setMargin(0);
mInfo = new QTextEdit(this);
mInfo->setReadOnly(true);
mInfo->setAcceptRichText(true);
lay->addWidget(mInfo);
setLayout(lay);
}
SieveInfoWidget::~SieveInfoWidget()
......
......@@ -104,14 +104,14 @@ bool SieveTemplateListWidget::modifyTemplate(QString &templateName, QString &tem
SieveTemplateWidget::SieveTemplateWidget(const QString &title, QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *lay = new QVBoxLayout;
QLabel *lab = new QLabel(title);
QVBoxLayout *lay = new QVBoxLayout(this);
lay->setMargin(0);
QLabel *lab = new QLabel(title, this);
lay->addWidget(lab);
mListTemplate = new SieveTemplateListWidget(QStringLiteral("sievetemplaterc"));
mListTemplate = new SieveTemplateListWidget(QStringLiteral("sievetemplaterc"), this);
mListTemplate->setWhatsThis(i18n("You can drag and drop element on editor to import template"));
connect(mListTemplate, &SieveTemplateListWidget::insertTemplate, this, &SieveTemplateWidget::insertTemplate);
lay->addWidget(mListTemplate);
setLayout(lay);
}
SieveTemplateWidget::~SieveTemplateWidget()
......
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