Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveactions/sieveactionreplace.cpp
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 83 | if (tagValue == QLatin1String("subject")) { | |||
---|---|---|---|---|---|
88 | } | 88 | } | ||
89 | } else if (tagValue == QLatin1String("from")) { | 89 | } else if (tagValue == QLatin1String("from")) { | ||
90 | const QString strValue = AutoCreateScriptUtil::strValue(element); | 90 | const QString strValue = AutoCreateScriptUtil::strValue(element); | ||
91 | if (!strValue.isEmpty()) { | 91 | if (!strValue.isEmpty()) { | ||
92 | KSieveUi::AbstractSelectEmailLineEdit *headers = w->findChild<KSieveUi::AbstractSelectEmailLineEdit *>(QStringLiteral("from")); | 92 | KSieveUi::AbstractSelectEmailLineEdit *headers = w->findChild<KSieveUi::AbstractSelectEmailLineEdit *>(QStringLiteral("from")); | ||
93 | headers->setText(strValue); | 93 | headers->setText(strValue); | ||
94 | } | 94 | } | ||
95 | } else { | 95 | } else { | ||
96 | unknowTagValue(tagValue, error); | 96 | unknownTagValue(tagValue, error); | ||
97 | qCDebug(LIBKSIEVE_LOG) << " SieveActionReplace::setParamWidgetValue unknown tagValue " << tagValue; | 97 | qCDebug(LIBKSIEVE_LOG) << " SieveActionReplace::setParamWidgetValue unknown tagValue " << tagValue; | ||
98 | } | 98 | } | ||
99 | } else if (tagName == QLatin1String("crlf")) { | 99 | } else if (tagName == QLatin1String("crlf")) { | ||
100 | element.skipCurrentElement(); | 100 | element.skipCurrentElement(); | ||
101 | //nothing | 101 | //nothing | ||
102 | } else if (tagName == QLatin1String("comment")) { | 102 | } else if (tagName == QLatin1String("comment")) { | ||
103 | element.skipCurrentElement(); | 103 | element.skipCurrentElement(); | ||
104 | //implement in the future ? | 104 | //implement in the future ? | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |