summaryrefslogtreecommitdiff
path: root/src/gui/windows/serverdialog.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/serverdialog.cpp
parent60b40c0c68e9cffbc5f48d4f672d99009488f8b1 (diff)
downloadplus-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.gz
plus-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.bz2
plus-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.xz
plus-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.zip
Rename keyEvent variables into event.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r--src/gui/windows/serverdialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp
index ec4bbebbb..33b6f1599 100644
--- a/src/gui/windows/serverdialog.cpp
+++ b/src/gui/windows/serverdialog.cpp
@@ -389,18 +389,18 @@ void ServerDialog::action(const ActionEvent &event)
}
}
-void ServerDialog::keyPressed(KeyEvent &keyEvent)
+void ServerDialog::keyPressed(KeyEvent &event)
{
- switch (keyEvent.getActionId())
+ switch (event.getActionId())
{
case Input::KEY_GUI_CANCEL:
- keyEvent.consume();
+ event.consume();
client->setState(STATE_EXIT);
return;
case Input::KEY_GUI_SELECT:
case Input::KEY_GUI_SELECT2:
- keyEvent.consume();
+ event.consume();
action(ActionEvent(nullptr,
mConnectButton->getActionEventId()));
return;
@@ -435,8 +435,8 @@ void ServerDialog::keyPressed(KeyEvent &keyEvent)
default:
break;
}
- if (!keyEvent.isConsumed())
- mServersList->keyPressed(keyEvent);
+ if (!event.isConsumed())
+ mServersList->keyPressed(event);
}
void ServerDialog::valueChanged(const SelectionEvent &)