Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
4a7be678
Commit
4a7be678
authored
Feb 12, 2022
by
Vlad Zahorodnii
Committed by
Nate Graham
Feb 14, 2022
Browse files
kcms/keys: Remove dead code
Given that Plasma requires KF 5.90 or newer, the ifdef can be removed.
parent
b74a86a7
Pipeline
#137383
passed with stage
in 5 minutes and 9 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
kcms/keys/globalaccelmodel.cpp
View file @
4a7be678
...
...
@@ -18,8 +18,6 @@
#include
<kglobalaccel_component_interface.h>
#include
<kglobalaccel_interface.h>
#include
<kglobalaccel_version.h>
#include
"kcmkeys_debug.h"
static
QStringList
buildActionId
(
const
QString
&
componentUnique
,
const
QString
&
componentFriendly
,
const
QString
&
actionUnique
,
const
QString
&
actionFriendly
)
...
...
@@ -178,11 +176,7 @@ void GlobalAccelModel::save()
keys
.
append
(
key
);
}
qCDebug
(
KCMKEYS
)
<<
"Saving"
<<
actionId
<<
action
.
activeShortcuts
<<
keys
;
#if KGLOBALACCEL_VERSION >= QT_VERSION_CHECK(5, 90, 0)
auto
reply
=
m_globalAccelInterface
->
setForeignShortcutKeys
(
actionId
,
keys
);
#else
auto
reply
=
m_globalAccelInterface
->
setForeignShortcut
(
actionId
,
keys
);
#endif
reply
.
waitForFinished
();
if
(
!
reply
.
isValid
())
{
qCCritical
(
KCMKEYS
)
<<
"Error while saving"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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