summaryrefslogtreecommitdiff
path: root/src/gui/widgets/guitable.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/guitable.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/widgets/guitable.cpp')
-rw-r--r--src/gui/widgets/guitable.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp
index 44248037c..35e09ce93 100644
--- a/src/gui/widgets/guitable.cpp
+++ b/src/gui/widgets/guitable.cpp
@@ -421,46 +421,46 @@ Rect GuiTable::getChildrenArea()
}
// -- KeyListener notifications
-void GuiTable::keyPressed(KeyEvent& keyEvent)
+void GuiTable::keyPressed(KeyEvent& event)
{
- const int action = keyEvent.getActionId();
+ const int action = event.getActionId();
if (action == Input::KEY_GUI_SELECT)
{
distributeActionEvent();
- keyEvent.consume();
+ event.consume();
}
else if (action == Input::KEY_GUI_UP)
{
setSelectedRow(mSelectedRow - 1);
- keyEvent.consume();
+ event.consume();
}
else if (action == Input::KEY_GUI_DOWN)
{
setSelectedRow(mSelectedRow + 1);
- keyEvent.consume();
+ event.consume();
}
else if (action == Input::KEY_GUI_LEFT)
{
setSelectedColumn(mSelectedColumn - 1);
- keyEvent.consume();
+ event.consume();
}
else if (action == Input::KEY_GUI_RIGHT)
{
setSelectedColumn(mSelectedColumn + 1);
- keyEvent.consume();
+ event.consume();
}
else if (action == Input::KEY_GUI_HOME)
{
setSelectedRow(0);
setSelectedColumn(0);
- keyEvent.consume();
+ event.consume();
}
else if (action == Input::KEY_GUI_END && mModel)
{
setSelectedRow(mModel->getRows() - 1);
setSelectedColumn(mModel->getColumns() - 1);
- keyEvent.consume();
+ event.consume();
}
}