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

Avoid to close dialog when we press enter. + add placeHolder

parent 334e14eb
Pipeline #60875 failed with stage
in 6 minutes and 38 seconds
...@@ -25,7 +25,7 @@ if (COMPILE_WITH_UNITY_CMAKE_SUPPORT) ...@@ -25,7 +25,7 @@ if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
endif() endif()
target_link_libraries(messageviewer_externalscriptplugin target_link_libraries(messageviewer_externalscriptplugin
KF5::MessageViewer KF5::XmlGui KF5::I18n KF5::PimCommon KF5::KIOWidgets KF5::MessageViewer KF5::XmlGui KF5::I18n KF5::PimCommon KF5::KIOWidgets KF5::Libkdepim
) )
if (KDEPIMADDONS_BUILD_EXAMPLES) if (KDEPIMADDONS_BUILD_EXAMPLES)
......
...@@ -11,7 +11,7 @@ macro(add_messageviewer_viewerplugin_external_plugin_unittest _source _additiona ...@@ -11,7 +11,7 @@ macro(add_messageviewer_viewerplugin_external_plugin_unittest _source _additiona
ecm_add_test(${_test} ecm_add_test(${_test}
TEST_NAME ${_name} TEST_NAME ${_name}
NAME_PREFIX "messageviewerplugins-" NAME_PREFIX "messageviewerplugins-"
LINK_LIBRARIES KF5::MessageViewer Qt::Test KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::I18n KF5::XmlGui KF5::PimCommon KF5::KIOWidgets LINK_LIBRARIES KF5::MessageViewer Qt::Test KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::I18n KF5::XmlGui KF5::PimCommon KF5::KIOWidgets KF5::Libkdepim
) )
endmacro () endmacro ()
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <KLineEdit> #include <KLineEdit>
#include <KLocalizedString> #include <KLocalizedString>
#include <KUrlRequester> #include <KUrlRequester>
#include <Libkdepim/LineEditCatchReturnKey>
#include <QFormLayout> #include <QFormLayout>
#include <QLabel> #include <QLabel>
#include <QWhatsThis> #include <QWhatsThis>
...@@ -22,15 +23,19 @@ ViewerPluginExternalEditWidget::ViewerPluginExternalEditWidget(QWidget *parent) ...@@ -22,15 +23,19 @@ ViewerPluginExternalEditWidget::ViewerPluginExternalEditWidget(QWidget *parent)
mName = new QLineEdit(this); mName = new QLineEdit(this);
mName->setObjectName(QStringLiteral("name")); mName->setObjectName(QStringLiteral("name"));
mainLayout->addRow(i18n("Name:"), mName); mainLayout->addRow(i18n("Name:"), mName);
new KPIM::LineEditCatchReturnKey(mName, this);
mDescription = new QLineEdit(this); mDescription = new QLineEdit(this);
mDescription->setObjectName(QStringLiteral("description")); mDescription->setObjectName(QStringLiteral("description"));
mainLayout->addRow(i18n("Description:"), mDescription); mainLayout->addRow(i18n("Description:"), mDescription);
new KPIM::LineEditCatchReturnKey(mDescription, this);
mCommandLine = new QLineEdit(this); mCommandLine = new QLineEdit(this);
mCommandLine->setClearButtonEnabled(true); mCommandLine->setClearButtonEnabled(true);
mCommandLine->setObjectName(QStringLiteral("commandline")); mCommandLine->setObjectName(QStringLiteral("commandline"));
mCommandLine->setPlaceholderText(i18n("Add command arguments..."));
mainLayout->addRow(i18n("Command Line:"), mCommandLine); mainLayout->addRow(i18n("Command Line:"), mCommandLine);
new KPIM::LineEditCatchReturnKey(mCommandLine, this);
auto formatHelp = new QLabel(i18n("<qt><a href=\"whatsthis1\">Argument format information...</a></qt>"), this); auto formatHelp = new QLabel(i18n("<qt><a href=\"whatsthis1\">Argument format information...</a></qt>"), this);
formatHelp->setObjectName(QStringLiteral("formatHelp")); formatHelp->setObjectName(QStringLiteral("formatHelp"));
......
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