Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveactions/sieveactionreplace.cpp
Show All 35 Lines | 35 | SieveActionReplace::SieveActionReplace(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent) | |||
---|---|---|---|---|---|
36 | : SieveAction(sieveGraphicalModeWidget, QStringLiteral("replace"), i18n("Replace"), parent) | 36 | : SieveAction(sieveGraphicalModeWidget, QStringLiteral("replace"), i18n("Replace"), parent) | ||
37 | { | 37 | { | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | QWidget *SieveActionReplace::createParamWidget(QWidget *parent) const | 40 | QWidget *SieveActionReplace::createParamWidget(QWidget *parent) const | ||
41 | { | 41 | { | ||
42 | QWidget *w = new QWidget(parent); | 42 | QWidget *w = new QWidget(parent); | ||
43 | QGridLayout *grid = new QGridLayout; | 43 | QGridLayout *grid = new QGridLayout; | ||
44 | grid->setMargin(0); | 44 | grid->setContentsMargins(0, 0, 0, 0); | ||
45 | w->setLayout(grid); | 45 | w->setLayout(grid); | ||
46 | 46 | | |||
47 | QLabel *lab = new QLabel(i18n("Subject:")); | 47 | QLabel *lab = new QLabel(i18n("Subject:")); | ||
48 | grid->addWidget(lab, 0, 0); | 48 | grid->addWidget(lab, 0, 0); | ||
49 | 49 | | |||
50 | QLineEdit *subject = new QLineEdit; | 50 | QLineEdit *subject = new QLineEdit; | ||
51 | subject->setObjectName(QStringLiteral("subject")); | 51 | subject->setObjectName(QStringLiteral("subject")); | ||
52 | connect(subject, &QLineEdit::textChanged, this, &SieveActionReplace::valueChanged); | 52 | connect(subject, &QLineEdit::textChanged, this, &SieveActionReplace::valueChanged); | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |