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

Use KPIM::LineEditCatchReturnKey

parent 3cda34d8
Pipeline #134701 passed with stage
in 13 minutes and 38 seconds
......@@ -42,6 +42,7 @@ target_link_libraries(openurlwithconfigure
KF5::I18n
KF5::MessageViewer
KF5::ItemViews
KF5::Libkdepim
)
set_target_properties(openurlwithconfigure
......
......@@ -5,7 +5,7 @@ macro(add_messageviewer_openwithurl_unittest _source)
ecm_add_test(${_source} ${_name}.h
TEST_NAME ${_name}
NAME_PREFIX "messageviewer-"
LINK_LIBRARIES KF5::MessageViewer openurlwithconfigure Qt${QT_MAJOR_VERSION}::Test
LINK_LIBRARIES KF5::MessageViewer KF5::Libkdepim openurlwithconfigure Qt${QT_MAJOR_VERSION}::Test
)
endmacro ()
......
......@@ -6,6 +6,7 @@
#include "openurlwithconfigurecreatewidget.h"
#include <KLocalizedString>
#include <Libkdepim/LineEditCatchReturnKey>
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
......@@ -22,6 +23,7 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
mServerName->setObjectName(QStringLiteral("mServerName"));
mainLayout->addRow(i18n("Server Name:"), mServerName);
KPIM::LineEditCatchReturnKey(mServerName, this);
auto formatHelp = new QLabel(i18n("<qt><a href=\"whatsthis1\">Argument format information...</a></qt>"), this);
formatHelp->setObjectName(QStringLiteral("formatHelp"));
......@@ -40,6 +42,7 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
mCommand->setObjectName(QStringLiteral("mCommand"));
mainLayout->addRow(i18n("Command:"), mCommand);
KPIM::LineEditCatchReturnKey(mCommand, this);
}
OpenUrlWithConfigureCreateWidget::~OpenUrlWithConfigureCreateWidget()
......
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