1 | /* |
2 | SPDX-FileCopyrightText: 2014 David Edmundson <davidedmundson@kde.org> |
3 | SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.1-or-later |
6 | */ |
7 | |
8 | #pragma once |
9 | |
10 | #include "kquickcontrolsprivate_export.h" |
11 | |
12 | #include <QObject> |
13 | |
14 | namespace KeySequenceEnums |
15 | { |
16 | |
17 | Q_NAMESPACE_EXPORT(KQUICKCONTROLSPRIVATE_EXPORT) |
18 | enum ShortcutType { |
19 | None = 0x00, //!< No checking for conflicts |
20 | StandardShortcuts = 0x01, //!< Check against standard shortcuts. @see KStandardShortcut |
21 | GlobalShortcuts = 0x02, //!< Check against global shortcuts. @see KGlobalAccel |
22 | }; |
23 | Q_ENUM_NS(ShortcutType); |
24 | Q_DECLARE_FLAGS(ShortcutTypes, ShortcutType) |
25 | Q_FLAG_NS(ShortcutTypes) |
26 | }; |
27 | |
28 | Q_DECLARE_OPERATORS_FOR_FLAGS(KeySequenceEnums::ShortcutTypes) |
29 | |