Differential D26003 Diff 71622 src/ksieveui/autocreatescripts/sieveconditions/sieveconditiondate.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditiondate.cpp
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 114 | while (element.readNextStartElement()) { | |||
---|---|---|---|---|---|
116 | if (tagName == QLatin1String("str")) { | 116 | if (tagName == QLatin1String("str")) { | ||
117 | if (index == 0) { | 117 | if (index == 0) { | ||
118 | headerStr = element.readElementText(); | 118 | headerStr = element.readElementText(); | ||
119 | } else if (index == 1) { | 119 | } else if (index == 1) { | ||
120 | type = element.readElementText(); | 120 | type = element.readElementText(); | ||
121 | } else if (index == 2) { | 121 | } else if (index == 2) { | ||
122 | value = element.readElementText(); | 122 | value = element.readElementText(); | ||
123 | } else { | 123 | } else { | ||
124 | tooManyArgument(tagName, index, 3, error); | 124 | tooManyArguments(tagName, index, 3, error); | ||
125 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionDate::setParamWidgetValue too many argument :" << index; | 125 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionDate::setParamWidgetValue too many argument :" << index; | ||
126 | } | 126 | } | ||
127 | ++index; | 127 | ++index; | ||
128 | } else if (tagName == QLatin1String("tag")) { | 128 | } else if (tagName == QLatin1String("tag")) { | ||
129 | SelectMatchTypeComboBox *selectMatchCombobox = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("matchtype")); | 129 | SelectMatchTypeComboBox *selectMatchCombobox = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("matchtype")); | ||
130 | selectMatchCombobox->setCode(AutoCreateScriptUtil::tagValueWithCondition(element.readElementText(), notCondition), name(), error); | 130 | selectMatchCombobox->setCode(AutoCreateScriptUtil::tagValueWithCondition(element.readElementText(), notCondition), name(), error); | ||
131 | } else if (tagName == QLatin1String("crlf")) { | 131 | } else if (tagName == QLatin1String("crlf")) { | ||
132 | element.skipCurrentElement(); | 132 | element.skipCurrentElement(); | ||
Show All 24 Lines |