Differential D19358 Diff 52758 src/ksieveui/autocreatescripts/sieveconditions/widgets/selectrelationalmatchtype.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectrelationalmatchtype.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
58 | QString SelectRelationalMatchType::code() const | 58 | QString SelectRelationalMatchType::code() const | ||
59 | { | 59 | { | ||
60 | return QStringLiteral("%1 \"%2\"").arg(mType->itemData(mType->currentIndex()).toString(), mMatch->itemData(mMatch->currentIndex()).toString()); | 60 | return QStringLiteral("%1 \"%2\"").arg(mType->itemData(mType->currentIndex()).toString(), mMatch->itemData(mMatch->currentIndex()).toString()); | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | void SelectRelationalMatchType::initialize() | 63 | void SelectRelationalMatchType::initialize() | ||
64 | { | 64 | { | ||
65 | QHBoxLayout *lay = new QHBoxLayout(this); | 65 | QHBoxLayout *lay = new QHBoxLayout(this); | ||
66 | lay->setMargin(0); | 66 | lay->setContentsMargins(0, 0, 0, 0); | ||
67 | 67 | | |||
68 | mType = new KComboBox(this); | 68 | mType = new KComboBox(this); | ||
69 | mType->addItem(i18n("Value"), QStringLiteral(":value")); | 69 | mType->addItem(i18n("Value"), QStringLiteral(":value")); | ||
70 | mType->addItem(i18n("Count"), QStringLiteral(":count")); | 70 | mType->addItem(i18n("Count"), QStringLiteral(":count")); | ||
71 | lay->addWidget(mType); | 71 | lay->addWidget(mType); | ||
72 | connect(mType, QOverload<int>::of(&KComboBox::activated), this, &SelectRelationalMatchType::valueChanged); | 72 | connect(mType, QOverload<int>::of(&KComboBox::activated), this, &SelectRelationalMatchType::valueChanged); | ||
73 | 73 | | |||
74 | mMatch = new KComboBox(this); | 74 | mMatch = new KComboBox(this); | ||
Show All 9 Lines |