diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-24 11:43:34 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-24 11:43:34 +0100 |
commit | 4d6e3bad7e38a80375c4888cf630aa71960d2899 (patch) | |
tree | ebd0d2185d9479586a944cba758c5d8214e54158 /gui/keyboard.h | |
parent | 670e8774705d160b67c0ad8c938d2525316e125b (diff) |
gui: simplify keyboard listener dialog
It's now generated from .ui QDialog, not a manually created QDialog from
QLabel in .ui.
Diffstat (limited to 'gui/keyboard.h')
-rw-r--r-- | gui/keyboard.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/keyboard.h b/gui/keyboard.h index d35fe675..58d4e674 100644 --- a/gui/keyboard.h +++ b/gui/keyboard.h @@ -4,11 +4,11 @@ #include "logic/win32-shortcuts.h" #include "dinput/keybinding-worker.hpp" #endif -#include <QLabel> +#include <QDialog> #include <QKeyEvent> #include <QDebug> -class KeyboardListener : public QLabel +class KeyboardListener : public QDialog { Q_OBJECT Ui_keyboard_listener ui; @@ -16,7 +16,7 @@ class KeyboardListener : public QLabel KeybindingWorker::Token token; #endif public: - KeyboardListener(QWidget* parent = nullptr) : QLabel(parent) + KeyboardListener(QWidget* parent = nullptr) : QDialog(parent) #ifdef _WIN32 , token([&](const Key& k) { if(k.guid != "") |