Add button selection logic and serialization

This commit is contained in:
lupoDharkael
2017-05-11 21:31:25 +02:00
parent 006a3a9996
commit f68483f4d9
8 changed files with 87 additions and 39 deletions

View File

@@ -32,6 +32,9 @@ Controller::Controller(QObject *parent) : QObject(parent) {
createTrayIcon();
m_trayIcon->show();
// required for the button serialization
qRegisterMetaTypeStreamOperators<QList<int> >("QList<int>");
m_nativeEventFilter = new NativeEventFilter(this);
qApp->installNativeEventFilter(m_nativeEventFilter);
connect(m_nativeEventFilter, &NativeEventFilter::activated, this, &Controller::slotPrintHotkey);