From d65936200a2756e6619a109fa6fa673b91df802e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 26 Jun 2018 22:25:22 +0200 Subject: modernize C++ syntax No visible changes (hopefully). --- gui/keyboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/keyboard.cpp') 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(k_).toInt() | m); + emit key_pressed(static_cast(k_).toInt() | m); } }) // token initializer ends, real ctor body begins -- cgit v1.2.3