Differential D19358 Diff 52758 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp
Show All 34 Lines | 34 | SieveConditionEnvironment::SieveConditionEnvironment(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent) | |||
---|---|---|---|---|---|
35 | : SieveCondition(sieveGraphicalModeWidget, QStringLiteral("environment"), i18n("Environment"), parent) | 35 | : SieveCondition(sieveGraphicalModeWidget, QStringLiteral("environment"), i18n("Environment"), parent) | ||
36 | { | 36 | { | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | QWidget *SieveConditionEnvironment::createParamWidget(QWidget *parent) const | 39 | QWidget *SieveConditionEnvironment::createParamWidget(QWidget *parent) const | ||
40 | { | 40 | { | ||
41 | QWidget *w = new QWidget(parent); | 41 | QWidget *w = new QWidget(parent); | ||
42 | QGridLayout *grid = new QGridLayout; | 42 | QGridLayout *grid = new QGridLayout; | ||
43 | grid->setMargin(0); | 43 | grid->setContentsMargins(0, 0, 0, 0); | ||
44 | w->setLayout(grid); | 44 | w->setLayout(grid); | ||
45 | QLabel *lab = new QLabel(i18n("Item:")); | 45 | QLabel *lab = new QLabel(i18n("Item:")); | ||
46 | grid->addWidget(lab, 0, 0); | 46 | grid->addWidget(lab, 0, 0); | ||
47 | 47 | | |||
48 | QLineEdit *item = new QLineEdit; | 48 | QLineEdit *item = new QLineEdit; | ||
49 | QStringList itemList; | 49 | QStringList itemList; | ||
50 | itemList << QStringLiteral("domain") | 50 | itemList << QStringLiteral("domain") | ||
51 | << QStringLiteral("host") | 51 | << QStringLiteral("host") | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |