Differential D26003 Diff 71622 src/ksieveui/autocreatescripts/sieveconditions/sieveconditioncurrentdate.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditioncurrentdate.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 94 | { | |||
---|---|---|---|---|---|
99 | while (element.readNextStartElement()) { | 99 | while (element.readNextStartElement()) { | ||
100 | const QStringRef tagName = element.name(); | 100 | const QStringRef tagName = element.name(); | ||
101 | if (tagName == QLatin1String("str")) { | 101 | if (tagName == QLatin1String("str")) { | ||
102 | if (index == 0) { | 102 | if (index == 0) { | ||
103 | type = element.readElementText(); | 103 | type = element.readElementText(); | ||
104 | } else if (index == 1) { | 104 | } else if (index == 1) { | ||
105 | value = element.readElementText(); | 105 | value = element.readElementText(); | ||
106 | } else { | 106 | } else { | ||
107 | tooManyArgument(tagName, index, 2, error); | 107 | tooManyArguments(tagName, index, 2, error); | ||
108 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionCurrentDate::setParamWidgetValue too many argument :" << index; | 108 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionCurrentDate::setParamWidgetValue too many argument :" << index; | ||
109 | } | 109 | } | ||
110 | ++index; | 110 | ++index; | ||
111 | } else if (tagName == QLatin1String("tag")) { | 111 | } else if (tagName == QLatin1String("tag")) { | ||
112 | SelectMatchTypeComboBox *selectMatchCombobox = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("matchtype")); | 112 | SelectMatchTypeComboBox *selectMatchCombobox = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("matchtype")); | ||
113 | selectMatchCombobox->setCode(AutoCreateScriptUtil::tagValueWithCondition(element.readElementText(), notCondition), name(), error); | 113 | selectMatchCombobox->setCode(AutoCreateScriptUtil::tagValueWithCondition(element.readElementText(), notCondition), name(), error); | ||
114 | } else if (tagName == QLatin1String("crlf")) { | 114 | } else if (tagName == QLatin1String("crlf")) { | ||
115 | element.skipCurrentElement(); | 115 | element.skipCurrentElement(); | ||
Show All 22 Lines |