Commit 8786bfc0 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated KToolInvocation::startServiceByDesktopName

parent 75a91ab6
......@@ -9,7 +9,7 @@ set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE
project(kgpg VERSION ${RELEASE_SERVICE_VERSION})
set(QT_MIN_VERSION "5.9.0")
find_package(ECM 5.21 REQUIRED NO_MODULE)
find_package(ECM 5.69 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
include(ECMAddAppIcon)
......@@ -31,7 +31,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
)
# Load the frameworks we need
find_package(KF5 5.28 REQUIRED
find_package(KF5 5.69 REQUIRED
Archive
DocTools
Codecs
......
......@@ -68,6 +68,7 @@
#include <KContacts/AddresseeList>
// #include <KContacts/Key> TODO
#include <KIO/Global>
#include <KIO/ApplicationLauncherJob>
#include <KJobTrackerInterface>
#include <KLocalizedString>
#include <KMessageBox>
......@@ -82,7 +83,6 @@
#include <KStatusNotifierItem>
#include <KTipDialog>
#include <KToggleAction>
#include <KToolInvocation>
#include <QApplication>
#include <QClipboard>
......@@ -1046,8 +1046,10 @@ void KeysManager::slotAddressbookSearchResult(KJob *job)
void KeysManager::slotManpage()
{
KToolInvocation::startServiceByDesktopName(QLatin1String("khelpcenter"),
QLatin1String("man:/gpg"), nullptr, nullptr, nullptr, QByteArray(), true);
const KService::Ptr helpCenter = KService::serviceByDesktopName(QStringLiteral("org.kde.help"));
auto job = new KIO::ApplicationLauncherJob(helpCenter);
job->setUrls({QUrl(QStringLiteral("man:/gpg"))});
job->start();
}
void KeysManager::slotTip()
......
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