added addGlobalMapping method

Enables overrides for specific key sequences, fixes #11
This commit is contained in:
Skycoder42
2017-12-21 18:12:48 +01:00
parent 670705e4e0
commit fc259100b2
4 changed files with 32 additions and 0 deletions
+4
View File
@@ -53,6 +53,8 @@ public:
bool valid;
};
static void addGlobalMapping(const QKeySequence &shortcut, const NativeShortcut &nativeShortcut);
//! Constructor
explicit QHotkey(QObject *parent = Q_NULLPTR);
//! Constructs a hotkey with a shortcut and optionally registers it
@@ -110,4 +112,6 @@ uint QHOTKEY_SHARED_EXPORT qHash(const QHotkey::NativeShortcut &key, uint seed);
QHOTKEY_SHARED_EXPORT Q_DECLARE_LOGGING_CATEGORY(logQHotkey)
Q_DECLARE_METATYPE(QHotkey::NativeShortcut)
#endif // QHOTKEY_H