From 7da95c7f4da447876458a0b1a17736b9a2865844 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 May 2014 19:47:28 +0300 Subject: Move inputaction into separate file. --- src/gui/windows/registerdialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/registerdialog.cpp') diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index 61b7e0dac..3a906b00e 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -26,6 +26,7 @@ #include "events/keyevent.h" +#include "input/inputaction.h" #include "input/keydata.h" #include "listeners/wrongdatanoticelistener.h" @@ -276,12 +277,12 @@ void RegisterDialog::keyPressed(KeyEvent &event) return; } const int actionId = event.getActionId(); - if (actionId == static_cast(Input::KEY_GUI_CANCEL)) + if (actionId == static_cast(InputAction::GUI_CANCEL)) { action(ActionEvent(nullptr, mCancelButton->getActionEventId())); } - else if (actionId == static_cast(Input::KEY_GUI_SELECT) - || actionId == static_cast(Input::KEY_GUI_SELECT2)) + else if (actionId == static_cast(InputAction::GUI_SELECT) + || actionId == static_cast(InputAction::GUI_SELECT2)) { action(ActionEvent(nullptr, mRegisterButton->getActionEventId())); } -- cgit v1.2.3-60-g2f50