Differential D26003 Diff 71622 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionconvert.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionconvert.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 113 | while (element.readNextStartElement()) { | |||
---|---|---|---|---|---|
115 | if (tagName == QLatin1String("str")) { | 115 | if (tagName == QLatin1String("str")) { | ||
116 | if (index == 0) { | 116 | if (index == 0) { | ||
117 | SelectMimeTypeComboBox *fromMimeType = w->findChild<SelectMimeTypeComboBox *>(QStringLiteral("from")); | 117 | SelectMimeTypeComboBox *fromMimeType = w->findChild<SelectMimeTypeComboBox *>(QStringLiteral("from")); | ||
118 | fromMimeType->setCode(element.readElementText(), name(), error); | 118 | fromMimeType->setCode(element.readElementText(), name(), error); | ||
119 | } else if (index == 1) { | 119 | } else if (index == 1) { | ||
120 | SelectMimeTypeComboBox *toMimeType = w->findChild<SelectMimeTypeComboBox *>(QStringLiteral("to")); | 120 | SelectMimeTypeComboBox *toMimeType = w->findChild<SelectMimeTypeComboBox *>(QStringLiteral("to")); | ||
121 | toMimeType->setCode(element.readElementText(), name(), error); | 121 | toMimeType->setCode(element.readElementText(), name(), error); | ||
122 | } else { | 122 | } else { | ||
123 | tooManyArgument(tagName, index, 2, error); | 123 | tooManyArguments(tagName, index, 2, error); | ||
124 | qCDebug(LIBKSIEVE_LOG) << " SieveActionConvert::setParamWidgetValue too many argument :" << index; | 124 | qCDebug(LIBKSIEVE_LOG) << " SieveActionConvert::setParamWidgetValue too many argument :" << index; | ||
125 | } | 125 | } | ||
126 | ++index; | 126 | ++index; | ||
127 | } else if (tagName == QLatin1String("list")) { | 127 | } else if (tagName == QLatin1String("list")) { | ||
128 | SelectConvertParameterWidget *params = w->findChild<SelectConvertParameterWidget *>(QStringLiteral("params")); | 128 | SelectConvertParameterWidget *params = w->findChild<SelectConvertParameterWidget *>(QStringLiteral("params")); | ||
129 | params->setCode(AutoCreateScriptUtil::listValue(element), error); | 129 | params->setCode(AutoCreateScriptUtil::listValue(element), error); | ||
130 | } else if (tagName == QLatin1String("crlf")) { | 130 | } else if (tagName == QLatin1String("crlf")) { | ||
131 | element.skipCurrentElement(); | 131 | element.skipCurrentElement(); | ||
Show All 13 Lines |