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