Differential D19358 Diff 52758 src/ksieveui/autocreatescripts/sieveconditions/sieveconditioncurrentdate.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditioncurrentdate.cpp
Show All 33 Lines | 33 | SieveConditionCurrentDate::SieveConditionCurrentDate(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent) | |||
---|---|---|---|---|---|
34 | : SieveCondition(sieveGraphicalModeWidget, QStringLiteral("currentdate"), i18n("Currentdate"), parent) | 34 | : SieveCondition(sieveGraphicalModeWidget, QStringLiteral("currentdate"), i18n("Currentdate"), parent) | ||
35 | { | 35 | { | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | QWidget *SieveConditionCurrentDate::createParamWidget(QWidget *parent) const | 38 | QWidget *SieveConditionCurrentDate::createParamWidget(QWidget *parent) const | ||
39 | { | 39 | { | ||
40 | QWidget *w = new QWidget(parent); | 40 | QWidget *w = new QWidget(parent); | ||
41 | QHBoxLayout *lay = new QHBoxLayout; | 41 | QHBoxLayout *lay = new QHBoxLayout; | ||
42 | lay->setMargin(0); | 42 | lay->setContentsMargins(0, 0, 0, 0); | ||
43 | w->setLayout(lay); | 43 | w->setLayout(lay); | ||
44 | 44 | | |||
45 | SelectMatchTypeComboBox *matchTypeCombo = new SelectMatchTypeComboBox(mSieveGraphicalModeWidget); | 45 | SelectMatchTypeComboBox *matchTypeCombo = new SelectMatchTypeComboBox(mSieveGraphicalModeWidget); | ||
46 | matchTypeCombo->setObjectName(QStringLiteral("matchtype")); | 46 | matchTypeCombo->setObjectName(QStringLiteral("matchtype")); | ||
47 | lay->addWidget(matchTypeCombo); | 47 | lay->addWidget(matchTypeCombo); | ||
48 | connect(matchTypeCombo, &SelectMatchTypeComboBox::valueChanged, this, &SieveConditionCurrentDate::valueChanged); | 48 | connect(matchTypeCombo, &SelectMatchTypeComboBox::valueChanged, this, &SieveConditionCurrentDate::valueChanged); | ||
49 | 49 | | |||
50 | SelectDateWidget *dateWidget = new SelectDateWidget; | 50 | SelectDateWidget *dateWidget = new SelectDateWidget; | ||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |