Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 26a698e7 authored by Laurent Montel's avatar Laurent Montel 😁

Add clear button

parent d0cf0f4f
......@@ -55,6 +55,7 @@ void LanguageToolConfigWidgetTest::shouldHaveDefaultValue()
QVERIFY(mInstancePath);
QVERIFY(mInstancePath->text().isEmpty());
QVERIFY(!mInstancePath->isEnabled());
QVERIFY(mInstancePath->isClearButtonEnabled());
QLabel *languageLabel = w.findChild<QLabel *>(QStringLiteral("languageLabel"));
QVERIFY(languageLabel);
......
......@@ -51,6 +51,7 @@ LanguageToolConfigWidget::LanguageToolConfigWidget(QWidget *parent)
mInstancePath = new QLineEdit(this);
mInstancePath->setObjectName(QStringLiteral("instancepath"));
mInstancePath->setEnabled(false);
mInstancePath->setClearButtonEnabled(true);
instanceLayout->addWidget(mInstancePath);
mainLayout->addLayout(instanceLayout);
......
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