summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.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/widgets/button.cpp
parent60b40c0c68e9cffbc5f48d4f672d99009488f8b1 (diff)
downloadmv-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.gz
mv-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.bz2
mv-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.tar.xz
mv-ba931a717cb5a2549ecdaa1f924dbbf5f896a21b.zip
Rename keyEvent variables into event.
Diffstat (limited to 'src/gui/widgets/button.cpp')
-rw-r--r--src/gui/widgets/button.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index 778d74b41..dffcc7814 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -673,20 +673,20 @@ void Button::adjustSize()
}
}
-void Button::keyPressed(KeyEvent& keyEvent)
+void Button::keyPressed(KeyEvent& event)
{
- const int action = keyEvent.getActionId();
+ const int action = event.getActionId();
if (action == Input::KEY_GUI_SELECT)
{
mKeyPressed = true;
- keyEvent.consume();
+ event.consume();
}
}
-void Button::keyReleased(KeyEvent& keyEvent)
+void Button::keyReleased(KeyEvent& event)
{
- const int action = keyEvent.getActionId();
+ const int action = event.getActionId();
if (action == Input::KEY_GUI_SELECT && mKeyPressed)
{
@@ -694,7 +694,7 @@ void Button::keyReleased(KeyEvent& keyEvent)
if (mStick)
mPressed = !mPressed;
distributeActionEvent();
- keyEvent.consume();
+ event.consume();
}
}