Commit 8b24c53a authored by Nicolas Fella's avatar Nicolas Fella Committed by Stefano Crocco
Browse files

Port away from deprecated KToolInvocation

parent 4030d5ef
Pipeline #204306 passed with stage
in 5 minutes and 29 seconds
......@@ -6,7 +6,6 @@
#include "kfmclient.h"
#include <ktoolinvocation.h>
#include <kio/job.h>
#include <kio/jobuidelegate.h>
......
......@@ -38,7 +38,6 @@
#include <KPluginFactory>
#include <KProtocolInfo>
#include <KToggleAction>
#include <KToolInvocation>
#include <konq_kpart_plugin.h>
#define QL1S(x) QLatin1String(x)
......
......@@ -21,7 +21,6 @@
#include <KDesktopFile>
#include <KConfigGroup>
#include <KToolInvocation>
#include <KSharedConfig>
#include <KProtocolInfo>
#include <QInputDialog>
......@@ -33,6 +32,7 @@
#include <KIO/JobUiDelegate>
#include <KIO/OpenUrlJob>
#include <KParts/BrowserRun>
#include <KEMailClientLauncherJob>
#include <QBuffer>
#include <QVariant>
......@@ -392,13 +392,13 @@ void WebEngineBrowserExtension::slotSendImage()
return;
}
QStringList urls;
urls.append(view()->contextMenuResult().mediaUrl().path());
QList<QUrl> urls = {view()->contextMenuResult().mediaUrl()};
const QString subject = view()->contextMenuResult().mediaUrl().path();
KToolInvocation::invokeMailer(QString(), QString(), QString(), subject,
QString(), //body
QString(),
urls); // attachments
auto *job = new KEMailClientLauncherJob;
job->setSubject(subject);
job->setAttachments(urls);
job->start();
}
void WebEngineBrowserExtension::slotCopyImageURL()
......
Supports Markdown
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