Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveactions/sieveactionbreak.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 55 | { | |||
---|---|---|---|---|---|
56 | while (element.readNextStartElement()) { | 56 | while (element.readNextStartElement()) { | ||
57 | const QStringRef tagName = element.name(); | 57 | const QStringRef tagName = element.name(); | ||
58 | if (tagName == QLatin1String("tag")) { | 58 | if (tagName == QLatin1String("tag")) { | ||
59 | const QString tagValue = element.readElementText(); | 59 | const QString tagValue = element.readElementText(); | ||
60 | if (tagValue == QLatin1String("name")) { | 60 | if (tagValue == QLatin1String("name")) { | ||
61 | QLineEdit *name = w->findChild<QLineEdit *>(QStringLiteral("name")); | 61 | QLineEdit *name = w->findChild<QLineEdit *>(QStringLiteral("name")); | ||
62 | name->setText(AutoCreateScriptUtil::strValue(element)); | 62 | name->setText(AutoCreateScriptUtil::strValue(element)); | ||
63 | } else { | 63 | } else { | ||
64 | unknowTagValue(tagValue, error); | 64 | unknownTagValue(tagValue, error); | ||
65 | qCDebug(LIBKSIEVE_LOG) << " SieveActionBreak::setParamWidgetValue unknown tagValue " << tagValue; | 65 | qCDebug(LIBKSIEVE_LOG) << " SieveActionBreak::setParamWidgetValue unknown tagValue " << tagValue; | ||
66 | } | 66 | } | ||
67 | } else if (tagName == QLatin1String("str")) { | 67 | } else if (tagName == QLatin1String("str")) { | ||
68 | element.skipCurrentElement(); | 68 | element.skipCurrentElement(); | ||
69 | //Nothing | 69 | //Nothing | ||
70 | } else if (tagName == QLatin1String("crlf")) { | 70 | } else if (tagName == QLatin1String("crlf")) { | ||
71 | element.skipCurrentElement(); | 71 | element.skipCurrentElement(); | ||
72 | //nothing | 72 | //nothing | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |