Differential D19358 Diff 52758 src/ksieveui/autocreatescripts/sieveconditions/widgets/selectbodytypewidget.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectbodytypewidget.cpp
Show All 34 Lines | |||||
35 | 35 | | |||
36 | SelectBodyTypeWidget::~SelectBodyTypeWidget() | 36 | SelectBodyTypeWidget::~SelectBodyTypeWidget() | ||
37 | { | 37 | { | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | void SelectBodyTypeWidget::initialize() | 40 | void SelectBodyTypeWidget::initialize() | ||
41 | { | 41 | { | ||
42 | QHBoxLayout *lay = new QHBoxLayout(this); | 42 | QHBoxLayout *lay = new QHBoxLayout(this); | ||
43 | lay->setMargin(0); | 43 | lay->setContentsMargins(0, 0, 0, 0); | ||
44 | 44 | | |||
45 | mBodyCombobox = new KComboBox(this); | 45 | mBodyCombobox = new KComboBox(this); | ||
46 | lay->addWidget(mBodyCombobox); | 46 | lay->addWidget(mBodyCombobox); | ||
47 | mBodyCombobox->addItem(i18n("raw"), QStringLiteral(":raw")); | 47 | mBodyCombobox->addItem(i18n("raw"), QStringLiteral(":raw")); | ||
48 | mBodyCombobox->addItem(i18n("content"), QStringLiteral(":content")); | 48 | mBodyCombobox->addItem(i18n("content"), QStringLiteral(":content")); | ||
49 | mBodyCombobox->addItem(i18n("text"), QStringLiteral(":text")); | 49 | mBodyCombobox->addItem(i18n("text"), QStringLiteral(":text")); | ||
50 | connect(mBodyCombobox, QOverload<int>::of(&KComboBox::activated), this, &SelectBodyTypeWidget::slotBodyTypeChanged); | 50 | connect(mBodyCombobox, QOverload<int>::of(&KComboBox::activated), this, &SelectBodyTypeWidget::slotBodyTypeChanged); | ||
51 | 51 | | |||
Show All 38 Lines |