Differential D26003 Diff 71622 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Line(s) | 112 | while (element.readNextStartElement()) { | |||
---|---|---|---|---|---|
114 | if (tagName == QLatin1String("str")) { | 114 | if (tagName == QLatin1String("str")) { | ||
115 | if (index == 0) { | 115 | if (index == 0) { | ||
116 | QLineEdit *item = w->findChild<QLineEdit *>(QStringLiteral("item")); | 116 | QLineEdit *item = w->findChild<QLineEdit *>(QStringLiteral("item")); | ||
117 | item->setText(AutoCreateScriptUtil::quoteStr(element.readElementText())); | 117 | item->setText(AutoCreateScriptUtil::quoteStr(element.readElementText())); | ||
118 | } else if (index == 1) { | 118 | } else if (index == 1) { | ||
119 | QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("value")); | 119 | QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("value")); | ||
120 | value->setText(AutoCreateScriptUtil::quoteStr(element.readElementText())); | 120 | value->setText(AutoCreateScriptUtil::quoteStr(element.readElementText())); | ||
121 | } else { | 121 | } else { | ||
122 | tooManyArgument(tagName, index, 2, error); | 122 | tooManyArguments(tagName, index, 2, error); | ||
123 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionEnvironment::setParamWidgetValue to many argument " << index; | 123 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionEnvironment::setParamWidgetValue to many argument " << index; | ||
124 | } | 124 | } | ||
125 | ++index; | 125 | ++index; | ||
126 | } else if (tagName == QLatin1String("crlf")) { | 126 | } else if (tagName == QLatin1String("crlf")) { | ||
127 | element.skipCurrentElement(); | 127 | element.skipCurrentElement(); | ||
128 | //nothing | 128 | //nothing | ||
129 | } else if (tagName == QLatin1String("comment")) { | 129 | } else if (tagName == QLatin1String("comment")) { | ||
130 | commentStr = AutoCreateScriptUtil::loadConditionComment(commentStr, element.readElementText()); | 130 | commentStr = AutoCreateScriptUtil::loadConditionComment(commentStr, element.readElementText()); | ||
Show All 16 Lines |