added X11 implementation

This commit is contained in:
Skycoder42
2016-02-06 19:31:50 +01:00
parent fc66c9229f
commit 7a9d6b6467
6 changed files with 192 additions and 12 deletions
+2 -2
View File
@@ -3,10 +3,10 @@
#include <QCoreApplication>
#include <QAbstractEventDispatcher>
#include <QMetaMethod>
#include <QDebug>
#define LOCKER QMutexLocker locker(&this->mutex)
#include <QDebug>
QHotkey::QHotkey(QObject *parent) :
QObject(parent),
key(Qt::Key_unknown),
@@ -96,7 +96,7 @@ bool QHotkey::setShortcut(Qt::Key key, Qt::KeyboardModifiers modifiers, bool aut
else
return true;
} else {
qWarning("QHotkey: Unable to map shortcut to native keys.");
qWarning() << "QHotkey: Unable to map shortcut to native keys. Key:" << key << "Modifiers:" << modifiers;
this->key = Qt::Key_unknown;
this->mods = Qt::NoModifier;
this->nativeShortcut = NativeShortcut();