Differential D19358 Diff 52758 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionservermetadata.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionservermetadata.cpp
Show All 34 Lines | 34 | SieveConditionServerMetaData::SieveConditionServerMetaData(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent) | |||
---|---|---|---|---|---|
35 | : SieveCondition(sieveGraphicalModeWidget, QStringLiteral("servermetadata"), i18n("Server Meta Data"), parent) | 35 | : SieveCondition(sieveGraphicalModeWidget, QStringLiteral("servermetadata"), i18n("Server Meta Data"), parent) | ||
36 | { | 36 | { | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | QWidget *SieveConditionServerMetaData::createParamWidget(QWidget *parent) const | 39 | QWidget *SieveConditionServerMetaData::createParamWidget(QWidget *parent) const | ||
40 | { | 40 | { | ||
41 | QWidget *w = new QWidget(parent); | 41 | QWidget *w = new QWidget(parent); | ||
42 | QHBoxLayout *lay = new QHBoxLayout; | 42 | QHBoxLayout *lay = new QHBoxLayout; | ||
43 | lay->setMargin(0); | 43 | lay->setContentsMargins(0, 0, 0, 0); | ||
44 | w->setLayout(lay); | 44 | w->setLayout(lay); | ||
45 | 45 | | |||
46 | SelectMatchTypeComboBox *selectType = new SelectMatchTypeComboBox(mSieveGraphicalModeWidget); | 46 | SelectMatchTypeComboBox *selectType = new SelectMatchTypeComboBox(mSieveGraphicalModeWidget); | ||
47 | selectType->setObjectName(QStringLiteral("selecttype")); | 47 | selectType->setObjectName(QStringLiteral("selecttype")); | ||
48 | connect(selectType, &SelectMatchTypeComboBox::valueChanged, this, &SieveConditionServerMetaData::valueChanged); | 48 | connect(selectType, &SelectMatchTypeComboBox::valueChanged, this, &SieveConditionServerMetaData::valueChanged); | ||
49 | lay->addWidget(selectType); | 49 | lay->addWidget(selectType); | ||
50 | 50 | | |||
51 | QGridLayout *grid = new QGridLayout; | 51 | QGridLayout *grid = new QGridLayout; | ||
52 | grid->setMargin(0); | 52 | grid->setContentsMargins(0, 0, 0, 0); | ||
53 | lay->addLayout(grid); | 53 | lay->addLayout(grid); | ||
54 | 54 | | |||
55 | QLabel *lab = new QLabel(i18n("Mailbox:")); | 55 | QLabel *lab = new QLabel(i18n("Mailbox:")); | ||
56 | grid->addWidget(lab, 0, 0); | 56 | grid->addWidget(lab, 0, 0); | ||
57 | 57 | | |||
58 | QLineEdit *mailbox = new QLineEdit; | 58 | QLineEdit *mailbox = new QLineEdit; | ||
59 | mailbox->setObjectName(QStringLiteral("mailbox")); | 59 | mailbox->setObjectName(QStringLiteral("mailbox")); | ||
60 | connect(mailbox, &QLineEdit::textChanged, this, &SieveConditionServerMetaData::valueChanged); | 60 | connect(mailbox, &QLineEdit::textChanged, this, &SieveConditionServerMetaData::valueChanged); | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |