summaryrefslogtreecommitdiffhomepage
path: root/gui/keyboard.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-26 22:25:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:05:21 +0200
commitd65936200a2756e6619a109fa6fa673b91df802e (patch)
tree80b6b6fc7ba9023cbe47290b8ae1bc5468a19bb1 /gui/keyboard.cpp
parent4046773c41ee3c0f65840828ab983cfd13451c85 (diff)
modernize C++ syntax
No visible changes (hopefully).
Diffstat (limited to 'gui/keyboard.cpp')
-rw-r--r--gui/keyboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/keyboard.cpp b/gui/keyboard.cpp
index 4987d9c0..b9964ecb 100644
--- a/gui/keyboard.cpp
+++ b/gui/keyboard.cpp
@@ -12,14 +12,14 @@ keyboard_listener::keyboard_listener(QWidget* parent) :
if (k.alt) mods |= Qt::AltModifier;
if (k.shift) mods |= Qt::ShiftModifier;
if (k.ctrl) mods |= Qt::ControlModifier;
- joystick_button_pressed(k.guid, k.keycode | mods, k.held);
+ emit joystick_button_pressed(k.guid, k.keycode | mods, k.held);
}
else
{
Qt::KeyboardModifiers m;
QKeySequence k_;
if (win_key::to_qt(k, k_, m))
- key_pressed(static_cast<QVariant>(k_).toInt() | m);
+ emit key_pressed(static_cast<QVariant>(k_).toInt() | m);
}
})
// token initializer ends, real ctor body begins