Commit 504b0e68 authored by Laurent Montel's avatar Laurent Montel 😁

Add clear button

parent 70c93748
......@@ -43,6 +43,7 @@ void MoveImapFolderWidgetTest::shouldHaveDefaultValue()
QVERIFY(mLineEdit);
QVERIFY(mLineEdit->text().isEmpty());
QVERIFY(w.text().isEmpty());
QVERIFY(mLineEdit->isClearButtonEnabled());
}
void MoveImapFolderWidgetTest::shouldAssignValue()
......
......@@ -30,6 +30,7 @@ MoveImapFolderWidget::MoveImapFolderWidget(QWidget *parent)
mainLayout->setMargin(0);
mLineEdit = new QLineEdit(this);
mLineEdit->setObjectName(QStringLiteral("lineedit"));
mLineEdit->setClearButtonEnabled(true);
mainLayout->addWidget(mLineEdit);
connect(mLineEdit, &QLineEdit::textChanged, this, &MoveImapFolderWidget::textChanged);
}
......
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