Differential D26003 Diff 71622 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionmetadata.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionmetadata.cpp
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | 137 | if (tagName == QLatin1String("str")) { | |||
---|---|---|---|---|---|
151 | } | 151 | } | ||
152 | case 2: | 152 | case 2: | ||
153 | { | 153 | { | ||
154 | AbstractRegexpEditorLineEdit *value = w->findChild<AbstractRegexpEditorLineEdit *>(QStringLiteral("value")); | 154 | AbstractRegexpEditorLineEdit *value = w->findChild<AbstractRegexpEditorLineEdit *>(QStringLiteral("value")); | ||
155 | value->setCode(AutoCreateScriptUtil::quoteStr(tagValue)); | 155 | value->setCode(AutoCreateScriptUtil::quoteStr(tagValue)); | ||
156 | break; | 156 | break; | ||
157 | } | 157 | } | ||
158 | default: | 158 | default: | ||
159 | tooManyArgument(tagName, index, 3, error); | 159 | tooManyArguments(tagName, index, 3, error); | ||
160 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionMetaData::setParamWidgetValue too many argument " << index; | 160 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionMetaData::setParamWidgetValue too many argument " << index; | ||
161 | break; | 161 | break; | ||
162 | } | 162 | } | ||
163 | ++index; | 163 | ++index; | ||
164 | } else if (tagName == QLatin1String("tag")) { | 164 | } else if (tagName == QLatin1String("tag")) { | ||
165 | SelectMatchTypeComboBox *selectType = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("selecttype")); | 165 | SelectMatchTypeComboBox *selectType = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("selecttype")); | ||
166 | selectType->setCode(AutoCreateScriptUtil::tagValueWithCondition(element.readElementText(), notCondition), name(), error); | 166 | selectType->setCode(AutoCreateScriptUtil::tagValueWithCondition(element.readElementText(), notCondition), name(), error); | ||
167 | } else if (tagName == QLatin1String("crlf")) { | 167 | } else if (tagName == QLatin1String("crlf")) { | ||
Show All 20 Lines |