mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refs #379 fixes the LED of sample_hotkey
This commit is contained in:
committed by
Roland Winklmeier
parent
4d375f6e40
commit
c94e5c0fbd
@@ -5,10 +5,14 @@
|
||||
|
||||
#include "hotkey.h"
|
||||
|
||||
#include "blackmisc/hwkeyboardkeylist.h"
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QGroupBox>
|
||||
|
||||
using namespace BlackMisc::Hardware;
|
||||
|
||||
HotkeyDialog::HotkeyDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
m_keyboard(nullptr),
|
||||
@@ -41,7 +45,12 @@ void HotkeyDialog::keySelectionChanged(BlackMisc::Hardware::CKeyboardKey key)
|
||||
void HotkeyDialog::keySelectionFinished(BlackMisc::Hardware::CKeyboardKey key)
|
||||
{
|
||||
m_lblHotkey->setText(key.toFormattedQString());
|
||||
|
||||
m_key = key;
|
||||
|
||||
CKeyboardKeyList keyList;
|
||||
keyList.push_back(key);
|
||||
m_keyboard->setKeysToMonitor(keyList);
|
||||
}
|
||||
|
||||
void HotkeyDialog::processKeyDown(const BlackMisc::Hardware::CKeyboardKey &key)
|
||||
|
||||
@@ -18,9 +18,11 @@ SOURCES += *.cpp
|
||||
HEADERS += *.h
|
||||
|
||||
win32:!win32-g++*: PRE_TARGETDEPS += ../../lib/blackmisc.lib \
|
||||
../../lib/blackcore.lib
|
||||
../../lib/blackcore.lib \
|
||||
../../lib/libblackinput.a
|
||||
else: PRE_TARGETDEPS += ../../lib/libblackmisc.a \
|
||||
../../lib/libblackcore.a
|
||||
../../lib/libblackcore.a \
|
||||
../../lib/libblackinput.a
|
||||
|
||||
DESTDIR = ../../bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user