Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveactions/sieveactionconvert.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 74 | while (element.readNextStartElement()) { | |||
---|---|---|---|---|---|
76 | if (tagName == QLatin1String("str")) { | 76 | if (tagName == QLatin1String("str")) { | ||
77 | if (index == 0) { | 77 | if (index == 0) { | ||
78 | SelectMimeTypeComboBox *fromMimeType = w->findChild<SelectMimeTypeComboBox *>(QStringLiteral("from")); | 78 | SelectMimeTypeComboBox *fromMimeType = w->findChild<SelectMimeTypeComboBox *>(QStringLiteral("from")); | ||
79 | fromMimeType->setCode(element.readElementText(), name(), error); | 79 | fromMimeType->setCode(element.readElementText(), name(), error); | ||
80 | } else if (index == 1) { | 80 | } else if (index == 1) { | ||
81 | SelectMimeTypeComboBox *toMimeType = w->findChild<SelectMimeTypeComboBox *>(QStringLiteral("to")); | 81 | SelectMimeTypeComboBox *toMimeType = w->findChild<SelectMimeTypeComboBox *>(QStringLiteral("to")); | ||
82 | toMimeType->setCode(element.readElementText(), name(), error); | 82 | toMimeType->setCode(element.readElementText(), name(), error); | ||
83 | } else { | 83 | } else { | ||
84 | tooManyArgument(tagName, index, 2, error); | 84 | tooManyArguments(tagName, index, 2, error); | ||
85 | qCDebug(LIBKSIEVE_LOG) << " SieveActionConvert::setParamWidgetValue too many argument :" << index; | 85 | qCDebug(LIBKSIEVE_LOG) << " SieveActionConvert::setParamWidgetValue too many argument :" << index; | ||
86 | } | 86 | } | ||
87 | ++index; | 87 | ++index; | ||
88 | } else if (tagName == QLatin1String("list")) { | 88 | } else if (tagName == QLatin1String("list")) { | ||
89 | SelectConvertParameterWidget *params = w->findChild<SelectConvertParameterWidget *>(QStringLiteral("params")); | 89 | SelectConvertParameterWidget *params = w->findChild<SelectConvertParameterWidget *>(QStringLiteral("params")); | ||
90 | params->setCode(AutoCreateScriptUtil::listValue(element), error); | 90 | params->setCode(AutoCreateScriptUtil::listValue(element), error); | ||
91 | } else if (tagName == QLatin1String("crlf")) { | 91 | } else if (tagName == QLatin1String("crlf")) { | ||
92 | element.skipCurrentElement(); | 92 | element.skipCurrentElement(); | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |