Differential D25848 Diff 71551 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionvirustest.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionvirustest.cpp
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 112 | if (tagName == QLatin1String("tag")) { | |||
---|---|---|---|---|---|
121 | } else if (tagValue == QLatin1String("comparator")) { | 121 | } else if (tagValue == QLatin1String("comparator")) { | ||
122 | if (element.readNextStartElement()) { | 122 | if (element.readNextStartElement()) { | ||
123 | if (element.name() == QLatin1String("str")) { | 123 | if (element.name() == QLatin1String("str")) { | ||
124 | SelectComparatorComboBox *comparator = w->findChild<SelectComparatorComboBox *>(QStringLiteral("comparator")); | 124 | SelectComparatorComboBox *comparator = w->findChild<SelectComparatorComboBox *>(QStringLiteral("comparator")); | ||
125 | comparator->setCode(element.readElementText(), name(), error); | 125 | comparator->setCode(element.readElementText(), name(), error); | ||
126 | } | 126 | } | ||
127 | } | 127 | } | ||
128 | } else { | 128 | } else { | ||
129 | unknowTagValue(tagValue, error); | 129 | unknownTagValue(tagValue, error); | ||
130 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionVirusTest::setParamWidgetValue unknown tagValue " << tagValue; | 130 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionVirusTest::setParamWidgetValue unknown tagValue " << tagValue; | ||
131 | } | 131 | } | ||
132 | } else if (tagName == QLatin1String("str")) { | 132 | } else if (tagName == QLatin1String("str")) { | ||
133 | QSpinBox *spinbox = w->findChild<QSpinBox *>(QStringLiteral("value")); | 133 | QSpinBox *spinbox = w->findChild<QSpinBox *>(QStringLiteral("value")); | ||
134 | spinbox->setValue(element.readElementText().toInt()); | 134 | spinbox->setValue(element.readElementText().toInt()); | ||
135 | } else if (tagName == QLatin1String("crlf")) { | 135 | } else if (tagName == QLatin1String("crlf")) { | ||
136 | element.skipCurrentElement(); | 136 | element.skipCurrentElement(); | ||
137 | //nothing | 137 | //nothing | ||
Show All 18 Lines |