1 #ifndef CSM_PREFS_SHORTCUT_EVENT_HANDLER_H
2 #define CSM_PREFS_SHORTCUT_EVENT_HANDLER_H
54 MatchResult match(
unsigned int mod,
unsigned int button,
unsigned int value);
57 static bool sort(
const std::pair<MatchResult, Shortcut*>& left,
58 const std::pair<MatchResult, Shortcut*>& right);
ShortcutMap mWidgetShortcuts
Definition: shortcuteventhandler.hpp:61
void updateParent(QWidget *widget)
Definition: shortcuteventhandler.cpp:131
void removeShortcut(Shortcut *shortcut)
Definition: shortcuteventhandler.cpp:44
Definition: shortcuteventhandler.hpp:41
WidgetMap mChildParentRelations
Definition: shortcuteventhandler.hpp:60
bool eventFilter(QObject *watched, QEvent *event)
Definition: shortcuteventhandler.cpp:56
Users of this class should install it as an event handler.
Definition: shortcuteventhandler.hpp:17
bool checkModifier(unsigned int mod, unsigned int button, Shortcut *shortcut, bool activate)
Definition: shortcuteventhandler.cpp:268
void addShortcut(Shortcut *shortcut)
Definition: shortcuteventhandler.cpp:20
Definition: shortcuteventhandler.hpp:42
std::map< QWidget *, QWidget * > WidgetMap
Definition: shortcuteventhandler.hpp:36
void widgetDestroyed()
Definition: shortcuteventhandler.cpp:331
MatchResult
Definition: shortcuteventhandler.hpp:39
static bool sort(const std::pair< MatchResult, Shortcut * > &left, const std::pair< MatchResult, Shortcut * > &right)
Definition: shortcuteventhandler.cpp:322
bool activate(QWidget *widget, unsigned int mod, unsigned int button)
Definition: shortcuteventhandler.cpp:149
std::map< QWidget *, ShortcutList > ShortcutMap
Definition: shortcuteventhandler.hpp:37
MatchResult match(unsigned int mod, unsigned int button, unsigned int value)
Definition: shortcuteventhandler.cpp:305
std::vector< Shortcut * > ShortcutList
Definition: shortcuteventhandler.hpp:34
bool deactivate(QWidget *widget, unsigned int mod, unsigned int button)
Definition: shortcuteventhandler.cpp:220
ShortcutEventHandler(QObject *parent)
Definition: shortcuteventhandler.cpp:15
Definition: shortcuteventhandler.hpp:43
A class similar in purpose to QShortcut, but with the ability to use mouse buttons.
Definition: shortcut.hpp:16