Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
KGpg
Commits
8786bfc0
Commit
8786bfc0
authored
Aug 12, 2020
by
Nicolas Fella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port away from deprecated KToolInvocation::startServiceByDesktopName
parent
75a91ab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
CMakeLists.txt
CMakeLists.txt
+2
-2
keysmanager.cpp
keysmanager.cpp
+5
-3
No files found.
CMakeLists.txt
View file @
8786bfc0
...
...
@@ -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
...
...
keysmanager.cpp
View file @
8786bfc0
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment