Commit ee87614d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use default values

parent 29fe78c0
......@@ -69,6 +69,6 @@ void DKIMRuleWidgetTest::shouldHaveDefaultValues()
QLineEdit *mPriority = w.findChild<QLineEdit *>(QStringLiteral("priority"));
QVERIFY(mPriority);
QVERIFY(mPriority->text().isEmpty());
QCOMPARE(mPriority->text(), QStringLiteral("1000"));
QVERIFY(mPriority->isClearButtonEnabled());
}
......@@ -68,6 +68,7 @@ DKIMRuleWidget::DKIMRuleWidget(QWidget *parent)
mPriority->setObjectName(QStringLiteral("priority"));
mPriority->setValidator(validator);
mPriority->setClearButtonEnabled(true);
mPriority->setText(QString::number(1000)); //Default Value
layout->addRow(i18n("Priority:"), mPriority);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment