Commit 112df162 authored by Laurent Montel's avatar Laurent Montel 😁

Compile widget

parent e15b6524
set(mailtransport_sendplugin_SRCS
sendmailtransportplugin.cpp
sendmailjob.cpp
)
sendmailtransportplugin.cpp
sendmailjob.cpp
sendmailconfigwidget.cpp
)
ki18n_wrap_ui(mailtransport_sendplugin_SRCS
sendmailsettings.ui
)
kcoreaddons_add_plugin(mailtransport_sendplugin JSON sendmailtransport.json SOURCES
${mailtransport_sendplugin_SRCS} INSTALL_NAMESPACE mailtransport)
target_link_libraries(mailtransport_sendplugin
KF5::MailTransport KF5::CoreAddons KF5::I18n KF5::ConfigWidgets
)
KF5::MailTransport
KF5::CoreAddons
KF5::I18n
KF5::ConfigWidgets
KF5::KIOWidgets
)
......@@ -26,10 +26,10 @@
*/
#include "sendmailconfigwidget.h"
#include "transportconfigwidget_p.h"
#include "mailtransport/private/transportconfigwidget_p.h"
#include "ui_sendmailsettings.h"
#include <KStandardDirs>
#include <QStandardPaths>
#include <KLineEdit>
using namespace MailTransport;
......@@ -66,7 +66,7 @@ void SendmailConfigWidget::init()
// Locate sendmail.
// This is imperfect, because it shows the standard path if an empty path
// is saved in the config.
d->ui.kcfg_host->setText(KStandardDirs::findExe(QLatin1String("sendmail")));
d->ui.kcfg_host->setText(QStandardPaths::findExecutable(QStringLiteral("sendmail")));
}
connect(d->ui.kcfg_host->lineEdit(), SIGNAL(textChanged(QString)),
SLOT(slotTextChanged(QString)));
......
......@@ -45,7 +45,7 @@ class SendmailConfigWidget : public TransportConfigWidget
Q_OBJECT
public:
explicit SendmailConfigWidget(Transport *transport, QWidget *parent = 0);
explicit SendmailConfigWidget(Transport *transport, QWidget *parent = nullptr);
bool pathIsEmpty() const;
Q_SIGNALS:
void enableButtonOk(bool);
......
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