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/updaterwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/updaterwindow.cpp') diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 40b8014e2..475144f61 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -27,6 +27,7 @@ #include "events/keyevent.h" +#include "input/inputaction.h" #include "input/keydata.h" #include "gui/widgets/browserbox.h" @@ -302,13 +303,13 @@ void UpdaterWindow::action(const ActionEvent &event) void UpdaterWindow::keyPressed(KeyEvent &event) { 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())); client->setState(STATE_LOGIN); } - 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)) { if (mDownloadStatus == UPDATE_COMPLETE || mDownloadStatus == UPDATE_ERROR) -- cgit v1.2.3-70-g09d2