Differential D26003 Diff 71622 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 110 | while (element.readNextStartElement()) { | |||
---|---|---|---|---|---|
111 | const QStringRef tagName = element.name(); | 111 | const QStringRef tagName = element.name(); | ||
112 | if (tagName == QLatin1String("tag")) { | 112 | if (tagName == QLatin1String("tag")) { | ||
113 | const QString tagValue = element.readElementText(); | 113 | const QString tagValue = element.readElementText(); | ||
114 | if (index == 0) { | 114 | if (index == 0) { | ||
115 | tagValueList << AutoCreateScriptUtil::tagValue(tagValue); | 115 | tagValueList << AutoCreateScriptUtil::tagValue(tagValue); | ||
116 | } else if (index == 1) { | 116 | } else if (index == 1) { | ||
117 | tagValueList << AutoCreateScriptUtil::tagValueWithCondition(tagValue, notCondition); | 117 | tagValueList << AutoCreateScriptUtil::tagValueWithCondition(tagValue, notCondition); | ||
118 | } else { | 118 | } else { | ||
119 | tooManyArgument(tagName, index, 2, error); | 119 | tooManyArguments(tagName, index, 2, error); | ||
120 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionBody::setParamWidgetValue too many argument " << index; | 120 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionBody::setParamWidgetValue too many argument " << index; | ||
121 | } | 121 | } | ||
122 | ++index; | 122 | ++index; | ||
123 | } else if (tagName == QLatin1String("str")) { | 123 | } else if (tagName == QLatin1String("str")) { | ||
124 | strValue << element.readElementText(); | 124 | strValue << element.readElementText(); | ||
125 | ++indexStr; | 125 | ++indexStr; | ||
126 | } else if (tagName == QLatin1String("crlf")) { | 126 | } else if (tagName == QLatin1String("crlf")) { | ||
127 | element.skipCurrentElement(); | 127 | element.skipCurrentElement(); | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |