Differential D25848 Diff 71551 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionspamtest.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionspamtest.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 146 | } else if (tagValue == QLatin1String("percent")) { | |||
---|---|---|---|---|---|
147 | if (mHasSpamTestPlusSupport) { | 147 | if (mHasSpamTestPlusSupport) { | ||
148 | QCheckBox *checkbox = w->findChild<QCheckBox *>(QStringLiteral("percent")); | 148 | QCheckBox *checkbox = w->findChild<QCheckBox *>(QStringLiteral("percent")); | ||
149 | checkbox->setChecked(true); | 149 | checkbox->setChecked(true); | ||
150 | } else { | 150 | } else { | ||
151 | serverDoesNotSupportFeatures(QStringLiteral("percent"), error); | 151 | serverDoesNotSupportFeatures(QStringLiteral("percent"), error); | ||
152 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionSpamTest::setParamWidgetValue server has not percent support"; | 152 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionSpamTest::setParamWidgetValue server has not percent support"; | ||
153 | } | 153 | } | ||
154 | } else { | 154 | } else { | ||
155 | unknowTagValue(tagValue, error); | 155 | unknownTagValue(tagValue, error); | ||
156 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionSpamTest::setParamWidgetValue unknown tagvalue " << tagValue; | 156 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionSpamTest::setParamWidgetValue unknown tagvalue " << tagValue; | ||
157 | } | 157 | } | ||
158 | } else if (tagName == QLatin1String("str")) { | 158 | } else if (tagName == QLatin1String("str")) { | ||
159 | QSpinBox *spinbox = w->findChild<QSpinBox *>(QStringLiteral("value")); | 159 | QSpinBox *spinbox = w->findChild<QSpinBox *>(QStringLiteral("value")); | ||
160 | spinbox->setValue(element.readElementText().toInt()); | 160 | spinbox->setValue(element.readElementText().toInt()); | ||
161 | } else if (tagName == QLatin1String("crlf")) { | 161 | } else if (tagName == QLatin1String("crlf")) { | ||
162 | element.skipCurrentElement(); | 162 | element.skipCurrentElement(); | ||
163 | //nothing | 163 | //nothing | ||
Show All 17 Lines |