Commit 8d883e84 authored by ivan tkachenko's avatar ivan tkachenko Committed by Vlad Zahorodnii
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
/*
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);
}
......
Supports Markdown
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