summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-21 22:22:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-21 22:22:47 +0300
commitba931a717cb5a2549ecdaa1f924dbbf5f896a21b (patch)
tree3c623bc1ce935c08b749572af439ae4b3b3dbc5b /src/gui/windows/charselectdialog.cpp
parent60b40c0c68e9cffbc5f48d4f672d99009488f8b1 (diff)
downloadManaVerse-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.gz
ManaVerse-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.bz2
ManaVerse-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.xz
ManaVerse-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.zip
Rename keyEvent variables into event.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 4480f06af..887937232 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -317,20 +317,20 @@ void CharSelectDialog::use(const int selected)
}
}
-void CharSelectDialog::keyPressed(KeyEvent &keyEvent)
+void CharSelectDialog::keyPressed(KeyEvent &event)
{
- const int actionId = keyEvent.getActionId();
+ const int actionId = event.getActionId();
switch (actionId)
{
case Input::KEY_GUI_CANCEL:
- keyEvent.consume();
+ event.consume();
action(ActionEvent(mSwitchLoginButton,
mSwitchLoginButton->getActionEventId()));
break;
case Input::KEY_GUI_RIGHT:
{
- keyEvent.consume();
+ event.consume();
int idx = mCharacterView->getSelected();
if (idx >= 0)
{
@@ -345,7 +345,7 @@ void CharSelectDialog::keyPressed(KeyEvent &keyEvent)
case Input::KEY_GUI_LEFT:
{
- keyEvent.consume();
+ event.consume();
int idx = mCharacterView->getSelected();
if (idx >= 0)
{
@@ -360,7 +360,7 @@ void CharSelectDialog::keyPressed(KeyEvent &keyEvent)
case Input::KEY_GUI_UP:
{
- keyEvent.consume();
+ event.consume();
int idx = mCharacterView->getSelected();
if (idx >= 0)
{
@@ -375,7 +375,7 @@ void CharSelectDialog::keyPressed(KeyEvent &keyEvent)
case Input::KEY_GUI_DOWN:
{
- keyEvent.consume();
+ event.consume();
int idx = mCharacterView->getSelected();
if (idx >= 0)
{
@@ -390,7 +390,7 @@ void CharSelectDialog::keyPressed(KeyEvent &keyEvent)
case Input::KEY_GUI_DELETE:
{
- keyEvent.consume();
+ event.consume();
const int idx = mCharacterView->getSelected();
if (idx >= 0 && mCharacterEntries[idx]
&& mCharacterEntries[idx]->getCharacter())
@@ -402,7 +402,7 @@ void CharSelectDialog::keyPressed(KeyEvent &keyEvent)
case Input::KEY_GUI_SELECT:
{
- keyEvent.consume();
+ event.consume();
use(mCharacterView->getSelected());
break;
}