diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-18 19:47:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-18 19:47:28 +0300 |
commit | 7da95c7f4da447876458a0b1a17736b9a2865844 (patch) | |
tree | 4b6ac0ab5bc32a11234a5363de95d0cfec8cb7d5 /src/gui/windows/editserverdialog.cpp | |
parent | 515ce6c1413b5e3da131f3e4997abdc39c003a2c (diff) | |
download | mv-7da95c7f4da447876458a0b1a17736b9a2865844.tar.gz mv-7da95c7f4da447876458a0b1a17736b9a2865844.tar.bz2 mv-7da95c7f4da447876458a0b1a17736b9a2865844.tar.xz mv-7da95c7f4da447876458a0b1a17736b9a2865844.zip |
Move inputaction into separate file.
Diffstat (limited to 'src/gui/windows/editserverdialog.cpp')
-rw-r--r-- | src/gui/windows/editserverdialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp index 516efea4d..da0de7026 100644 --- a/src/gui/windows/editserverdialog.cpp +++ b/src/gui/windows/editserverdialog.cpp @@ -23,6 +23,7 @@ #include "events/keyevent.h" +#include "input/inputaction.h" #include "input/keydata.h" #include "gui/models/typelistmodel.h" @@ -256,12 +257,12 @@ void EditServerDialog::keyPressed(KeyEvent &event) const int actionId = event.getActionId(); - if (actionId == static_cast<int>(Input::KEY_GUI_CANCEL)) + if (actionId == static_cast<int>(InputAction::GUI_CANCEL)) { scheduleDelete(); } - else if (actionId == static_cast<int>(Input::KEY_GUI_SELECT) - || actionId == static_cast<int>(Input::KEY_GUI_SELECT2)) + else if (actionId == static_cast<int>(InputAction::GUI_SELECT) + || actionId == static_cast<int>(InputAction::GUI_SELECT2)) { action(ActionEvent(nullptr, mOkButton->getActionEventId())); } |