Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 612e7ebe authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent aa330036
......@@ -57,7 +57,7 @@ void AttachmentUpdateJob::Private::doStart()
return;
}
MessageCore::AttachmentFromUrlBaseJob *job = MessageCore::AttachmentFromUrlUtils::createAttachmentJob(mOriginalPart->url(), q);
connect(job, SIGNAL(result(KJob*)), q, SLOT(loadJobResult(KJob*)));
connect(job, &AttachmentFromUrlBaseJob::result, q, [this](KJob *job) { loadJobResult(job); });
job->start();
}
......
......@@ -39,8 +39,6 @@ private:
//@cond PRIVATE
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void doStart())
Q_PRIVATE_SLOT(d, void loadJobResult(KJob *))
};
}
......
......@@ -18,6 +18,7 @@
*/
#include "customtemplates.h"
#include "templateparser/templatesinsertcommand.h"
#include "customtemplates_kfg.h"
#include "globalsettings_templateparser.h"
#include "ui_customtemplates_base.h"
......@@ -60,7 +61,7 @@ CustomTemplates::CustomTemplates(const QList<KActionCollection *> &actionCollect
connect(mUi->mName, &KLineEdit::returnPressed, this, &CustomTemplates::slotAddClicked);
connect(mUi->mInsertCommand, SIGNAL(insertCommand(QString,int)), this, SLOT(slotInsertCommand(QString,int)));
connect(mUi->mInsertCommand, QOverload<const QString &,int>::of(&TemplateParser::TemplatesInsertCommand::insertCommand), this, &CustomTemplates::slotInsertCommand);
connect(mUi->mAdd, &QPushButton::clicked, this, &CustomTemplates::slotAddClicked);
connect(mUi->mRemove, &QPushButton::clicked, this, &CustomTemplates::slotRemoveClicked);
......
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