Commit 4517a381 authored by Nicolas Fella's avatar Nicolas Fella Committed by Stefano Crocco
Browse files

Port some KToolInvokation use

Use ApplicationLauncherJob/CommandLauncherJob instead
parent 0123b144
......@@ -44,11 +44,11 @@
#include <kio/jobuidelegate.h>
#include <KIO/FileUndoManager>
#include <KJobWidgets>
#include <ktoolinvocation.h>
#include <kconfig.h>
#include <kconfiggroup.h>
#include <ksharedconfig.h>
#include <KLocalizedString>
#include <KIO/ApplicationLauncherJob>
#include <QApplication>
#include <QMimeData>
......@@ -215,8 +215,10 @@ void FSViewPart::showInfo()
void FSViewPart::showHelp()
{
KToolInvocation::startServiceByDesktopName(QStringLiteral("khelpcenter"),
QStringLiteral("help:/konqueror/index.html#fsview"));
const KService::Ptr helpCenter = KService::serviceByDesktopName(QStringLiteral("org.kde.help"));
auto job = new KIO::ApplicationLauncherJob(helpCenter);
job->setUrls({QUrl(QStringLiteral("help:/konqueror/index.html#fsview"))});
job->start();
}
void FSViewPart::startedSlot()
......
......@@ -37,7 +37,7 @@
#include <KIO/AccessManager>
#include <KStringHandler>
#include <KLocalizedString>
#include <KToolInvocation>
#include <KIO/CommandLauncherJob>
#include <QTimer>
#include <QMimeData>
......@@ -555,8 +555,8 @@ void WebEngineView::multimediaActionPopupMenu(KParts::BrowserExtension::ActionGr
void WebEngineView::slotConfigureWebShortcuts()
{
KToolInvocation::kdeinitExec(QStringLiteral("kcmshell5"),
QStringList() << QStringLiteral("webshortcuts"));
auto job = new KIO::CommandLauncherJob(QStringLiteral("kcmshell5"), {QStringLiteral("webshortcuts")});
job->start();
}
void WebEngineView::slotStopAutoScroll()
......
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