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
KWin
Commits
8d883e84
Commit
8d883e84
authored
Sep 22, 2022
by
ivan tkachenko
Committed by
Vlad Zahorodnii
Sep 27, 2022
Browse files
effects/windowview: Add ExposeClassCurrentDesktop shortcut to KCM
See also:
f2defd1d
(cherry picked from commit
e45cc7a8
)
parent
893d58eb
Pipeline
#237357
passed with stage
in 25 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/effects/windowview/kcm/windowvieweffectkcm.cpp
View file @
8d883e84
/*
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-FileCopyrightText: 2022 ivan tkachenko <me@ratijas.tk>
SPDX-License-Identifier: GPL-2.0-or-later
*/
...
...
@@ -57,6 +58,12 @@ WindowViewEffectConfig::WindowViewEffectConfig(QWidget *parent, const QVariantLi
KGlobalAccel
::
self
()
->
setDefaultShortcut
(
toggleAction
,
{
defaultToggleShortcutClass
});
KGlobalAccel
::
self
()
->
setShortcut
(
toggleAction
,
{
defaultToggleShortcutClass
});
toggleAction
=
actionCollection
->
addAction
(
QStringLiteral
(
"ExposeClassCurrentDesktop"
));
toggleAction
->
setText
(
i18n
(
"Toggle Present Windows (Window class on current desktop)"
));
toggleAction
->
setProperty
(
"isConfigurationAction"
,
true
);
KGlobalAccel
::
self
()
->
setDefaultShortcut
(
toggleAction
,
QList
<
QKeySequence
>
());
// no default shortcut
KGlobalAccel
::
self
()
->
setShortcut
(
toggleAction
,
QList
<
QKeySequence
>
());
ui
.
shortcutsEditor
->
addCollection
(
actionCollection
);
connect
(
ui
.
shortcutsEditor
,
&
KShortcutsEditor
::
keyChange
,
this
,
&
WindowViewEffectConfig
::
markAsChanged
);
}
...
...
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