17 #include "globalshortcut.h"
18 #include "globalshortcutregistry.h"
25 GlobalShortcut::GlobalShortcut(QQuickItem *parent)
35 void GlobalShortcut::setShortcut(
const QVariant &shortcut)
41 registry->addShortcut(
shortcut,
this);
45 bool GlobalShortcut::isActive()
const
50 void GlobalShortcut::setActive(
bool active)
56 Q_EMIT activeChanged(
active);
59 void GlobalShortcut::keyPressEvent(QKeyEvent * event)
70 void GlobalShortcut::keyReleaseEvent(QKeyEvent * event)
78 Q_EMIT
released(m_shortcut.toString());