KWin
Loading...
Searching...
No Matches
shortcutsettings.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2023 Ismael Asensio <isma.af@gmail.com>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include <QKeySequence>
13
14#include <KConfigSkeleton>
15
16class KActionCollection;
17
18namespace KWin
19{
20namespace TabBox
21{
22
23class ShortcutSettings : public KConfigSkeleton
24{
25public:
26 explicit ShortcutSettings(QObject *parent);
27
28 KActionCollection *actionCollection() const;
29
30 QKeySequence shortcut(const QString &name) const;
31 void setShortcut(const QString &name, const QKeySequence &seq);
32
33 bool isDefault(const QString &name) const;
34
35private:
36 KActionCollection *m_actionCollection = nullptr;
37};
38
39} // namespace TabBox
40} // namespace KWin
QKeySequence shortcut(const QString &name) const
void setShortcut(const QString &name, const QKeySequence &seq)
bool isDefault(const QString &name) const
KActionCollection * actionCollection() const