Commit 021708b9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add clear button

parent 63d99597
Pipeline #154675 passed with stage
in 12 minutes and 38 seconds
......@@ -28,10 +28,12 @@ void OpenUrlWithConfigureCreateWidgetTest::shouldHaveDefaultValues()
auto mServerName = w.findChild<QLineEdit *>(QStringLiteral("mServerName"));
QVERIFY(mServerName);
QVERIFY(mServerName->text().isEmpty());
QVERIFY(mServerName->isClearButtonEnabled());
auto mCommandLine = w.findChild<QLineEdit *>(QStringLiteral("mCommandLine"));
QVERIFY(mCommandLine);
QVERIFY(mCommandLine->text().isEmpty());
QVERIFY(mCommandLine->isClearButtonEnabled());
auto formatHelp = w.findChild<QLabel *>(QStringLiteral("formatHelp"));
QVERIFY(formatHelp);
......
......@@ -26,6 +26,7 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
mServerName->setObjectName(QStringLiteral("mServerName"));
mainLayout->addRow(i18n("Server Name:"), mServerName);
mServerName->setClearButtonEnabled(true);
KPIM::LineEditCatchReturnKey(mServerName, this);
auto formatHelp = new QLabel(i18n("<qt><a href=\"whatsthis1\">Argument format information...</a></qt>"), this);
......@@ -44,6 +45,7 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
mainLayout->addWidget(formatHelp);
mCommandLine->setObjectName(QStringLiteral("mCommandLine"));
mCommandLine->setClearButtonEnabled(true);
mainLayout->addRow(i18n("Command line:"), mCommandLine);
KPIM::LineEditCatchReturnKey(mCommandLine, this);
......
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