Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveactions/sieveactionenclose.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 78 | if (tagValue == QLatin1String("headers")) { | |||
---|---|---|---|---|---|
83 | } | 83 | } | ||
84 | } else if (tagValue == QLatin1String("subject")) { | 84 | } else if (tagValue == QLatin1String("subject")) { | ||
85 | const QString strValue = AutoCreateScriptUtil::strValue(element); | 85 | const QString strValue = AutoCreateScriptUtil::strValue(element); | ||
86 | if (!strValue.isEmpty()) { | 86 | if (!strValue.isEmpty()) { | ||
87 | QLineEdit *headers = w->findChild<QLineEdit *>(QStringLiteral("subject")); | 87 | QLineEdit *headers = w->findChild<QLineEdit *>(QStringLiteral("subject")); | ||
88 | headers->setText(strValue); | 88 | headers->setText(strValue); | ||
89 | } | 89 | } | ||
90 | } else { | 90 | } else { | ||
91 | unknowTagValue(tagValue, error); | 91 | unknownTagValue(tagValue, error); | ||
92 | qCDebug(LIBKSIEVE_LOG) << " SieveActionEnclose::setParamWidgetValue unknown tag value:" << tagValue; | 92 | qCDebug(LIBKSIEVE_LOG) << " SieveActionEnclose::setParamWidgetValue unknown tag value:" << tagValue; | ||
93 | } | 93 | } | ||
94 | } else if (tagName == QLatin1String("str")) { | 94 | } else if (tagName == QLatin1String("str")) { | ||
95 | MultiLineEdit *edit = w->findChild<MultiLineEdit *>(QStringLiteral("text")); | 95 | MultiLineEdit *edit = w->findChild<MultiLineEdit *>(QStringLiteral("text")); | ||
96 | edit->setPlainText(element.readElementText()); | 96 | edit->setPlainText(element.readElementText()); | ||
97 | } else if (tagName == QLatin1String("crlf")) { | 97 | } else if (tagName == QLatin1String("crlf")) { | ||
98 | element.skipCurrentElement(); | 98 | element.skipCurrentElement(); | ||
99 | //nothing | 99 | //nothing | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |