Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveactions/sieveactionaddheader.cpp
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 73 | while (element.readNextStartElement()) { | |||
---|---|---|---|---|---|
78 | } else if (tagName == QLatin1String("str")) { | 78 | } else if (tagName == QLatin1String("str")) { | ||
79 | if (index == 0) { | 79 | if (index == 0) { | ||
80 | QLineEdit *edit = w->findChild<QLineEdit *>(QStringLiteral("headeredit")); | 80 | QLineEdit *edit = w->findChild<QLineEdit *>(QStringLiteral("headeredit")); | ||
81 | edit->setText(element.readElementText()); | 81 | edit->setText(element.readElementText()); | ||
82 | } else if (index == 1) { | 82 | } else if (index == 1) { | ||
83 | QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("valueedit")); | 83 | QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("valueedit")); | ||
84 | value->setText(AutoCreateScriptUtil::quoteStr(element.readElementText())); | 84 | value->setText(AutoCreateScriptUtil::quoteStr(element.readElementText())); | ||
85 | } else { | 85 | } else { | ||
86 | tooManyArgument(tagName, index, 2, error); | 86 | tooManyArguments(tagName, index, 2, error); | ||
87 | qCDebug(LIBKSIEVE_LOG) << " SieveActionAddHeader::setParamWidgetValue too many argument :" << index; | 87 | qCDebug(LIBKSIEVE_LOG) << " SieveActionAddHeader::setParamWidgetValue too many argument :" << index; | ||
88 | } | 88 | } | ||
89 | ++index; | 89 | ++index; | ||
90 | } else if (tagName == QLatin1String("crlf")) { | 90 | } else if (tagName == QLatin1String("crlf")) { | ||
91 | element.skipCurrentElement(); | 91 | element.skipCurrentElement(); | ||
92 | //nothing | 92 | //nothing | ||
93 | } else if (tagName == QLatin1String("comment")) { | 93 | } else if (tagName == QLatin1String("comment")) { | ||
94 | element.skipCurrentElement(); | 94 | element.skipCurrentElement(); | ||
Show All 37 Lines |