Add isPlatformSupported() (#28)

* Add isPlatformSupported()
* Remove extra semicolons
* Add newlines before new methods
This commit is contained in:
Hennadii Chernyshchyk
2020-01-07 09:31:37 +01:00
committed by Felix Barz
parent 96a0710e1b
commit 9583eafe76
6 changed files with 31 additions and 7 deletions
+3
View File
@@ -57,6 +57,9 @@ public:
//! Adds a global mapping of a key sequence to a replacement native shortcut
static void addGlobalMapping(const QKeySequence &shortcut, const NativeShortcut &nativeShortcut);
//! Checks if global shortcuts are supported by the current platform
static bool isPlatformSupported();
//! Default Constructor
explicit QHotkey(QObject *parent = nullptr);
//! Constructs a hotkey with a shortcut and optionally registers it