Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveactions/sieveactionvacation.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 114 | if (element.readNextStartElement()) { | |||
---|---|---|---|---|---|
118 | } else if (textElementTagName == QLatin1String("list")) { | 118 | } else if (textElementTagName == QLatin1String("list")) { | ||
119 | addresses->setText(AutoCreateScriptUtil::listValueToStr(element)); | 119 | addresses->setText(AutoCreateScriptUtil::listValueToStr(element)); | ||
120 | } | 120 | } | ||
121 | } | 121 | } | ||
122 | } else if (tagValue == QLatin1String("subject")) { | 122 | } else if (tagValue == QLatin1String("subject")) { | ||
123 | QLineEdit *subject = w->findChild<QLineEdit *>(QStringLiteral("subject")); | 123 | QLineEdit *subject = w->findChild<QLineEdit *>(QStringLiteral("subject")); | ||
124 | subject->setText(AutoCreateScriptUtil::strValue(element)); | 124 | subject->setText(AutoCreateScriptUtil::strValue(element)); | ||
125 | } else { | 125 | } else { | ||
126 | unknowTagValue(tagValue, error); | 126 | unknownTagValue(tagValue, error); | ||
127 | qCDebug(LIBKSIEVE_LOG) << "SieveActionVacation::setParamWidgetValue unknown tagValue :" << tagValue; | 127 | qCDebug(LIBKSIEVE_LOG) << "SieveActionVacation::setParamWidgetValue unknown tagValue :" << tagValue; | ||
128 | } | 128 | } | ||
129 | } else if (tagName == QLatin1String("num")) { | 129 | } else if (tagName == QLatin1String("num")) { | ||
130 | QSpinBox *day = w->findChild<QSpinBox *>(QStringLiteral("day")); | 130 | QSpinBox *day = w->findChild<QSpinBox *>(QStringLiteral("day")); | ||
131 | day->setValue(element.readElementText().toInt()); | 131 | day->setValue(element.readElementText().toInt()); | ||
132 | } else if (tagName == QLatin1String("str")) { | 132 | } else if (tagName == QLatin1String("str")) { | ||
133 | MultiLineEdit *text = w->findChild<MultiLineEdit *>(QStringLiteral("text")); | 133 | MultiLineEdit *text = w->findChild<MultiLineEdit *>(QStringLiteral("text")); | ||
134 | text->setPlainText(element.readElementText()); | 134 | text->setPlainText(element.readElementText()); | ||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |