Lomiri
|
The GlobalShortcutRegistry class. More...
#include <plugins/GlobalShortcut/globalshortcutregistry.h>
Inherits QObject.
Public Member Functions | |
GlobalShortcutRegistry (QObject *parent=nullptr) | |
GlobalShortcutList | shortcuts () const |
bool | hasShortcut (const QVariant &seq) const |
void | addShortcut (const QVariant &seq, GlobalShortcut *sc) |
void | setupFilterOnWindow (QWindow *window) |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) override |
The GlobalShortcutRegistry class.
Serves as a central point for shortcut registration.
Definition at line 34 of file globalshortcutregistry.h.
GlobalShortcutRegistry::GlobalShortcutRegistry | ( | QObject * | parent = nullptr | ) |
Definition at line 38 of file globalshortcutregistry.cpp.
void GlobalShortcutRegistry::addShortcut | ( | const QVariant & | seq, |
GlobalShortcut * | sc | ||
) |
Adds a shortcut seq
to the registry
Definition at line 55 of file globalshortcutregistry.cpp.
|
overrideprotected |
Definition at line 85 of file globalshortcutregistry.cpp.
bool GlobalShortcutRegistry::hasShortcut | ( | const QVariant & | seq | ) | const |
seq
is currently registered Definition at line 50 of file globalshortcutregistry.cpp.
void GlobalShortcutRegistry::setupFilterOnWindow | ( | QWindow * | window | ) |
Sets up key events filtering on window window
Definition at line 123 of file globalshortcutregistry.cpp.
GlobalShortcutList GlobalShortcutRegistry::shortcuts | ( | ) | const |
Definition at line 45 of file globalshortcutregistry.cpp.