File indexing completed on 2024-11-10 04:56:52
0001 /* 0002 KWin - the KDE window manager 0003 This file is part of the KDE project. 0004 0005 SPDX-FileCopyrightText: 2023 Ismael Asensio <isma.af@gmail.com> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <QKeySequence> 0013 0014 #include <KConfigSkeleton> 0015 0016 class KActionCollection; 0017 0018 namespace KWin 0019 { 0020 namespace TabBox 0021 { 0022 0023 class ShortcutSettings : public KConfigSkeleton 0024 { 0025 public: 0026 explicit ShortcutSettings(QObject *parent); 0027 0028 KActionCollection *actionCollection() const; 0029 0030 QKeySequence shortcut(const QString &name) const; 0031 void setShortcut(const QString &name, const QKeySequence &seq); 0032 0033 bool isDefault(const QString &name) const; 0034 0035 private: 0036 KActionCollection *m_actionCollection = nullptr; 0037 }; 0038 0039 } // namespace TabBox 0040 } // namespace KWin