51 #ifndef KEYINTERFACE_HH
52 #define KEYINTERFACE_HH
55 #if QT_VERSION >= 0x050000
88 virtual void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
bool _multiUse =
false) {};
185 Q_DECLARE_INTERFACE(
KeyInterface,
"OpenFlipper.KeyInterface/1.1")
187 #endif // KEYINTERFACE_HH
Keyboard Event Interface.
virtual void slotKeyEvent(QKeyEvent *_event)
Key Event from Main App.
virtual void registerKey(int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
Register a key-combination for your plugin.
virtual void slotKeyReleaseEvent(QKeyEvent *_event)
Key Release Event from Main App.
virtual ~KeyInterface()
Destructor.