summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textbox.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/textbox.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/textbox.cpp')
-rw-r--r--src/gui/widgets/textbox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp
index 39e585279..b1849e801 100644
--- a/src/gui/widgets/textbox.cpp
+++ b/src/gui/widgets/textbox.cpp
@@ -248,10 +248,10 @@ void TextBox::setText(const std::string& text)
adjustSize();
}
-void TextBox::keyPressed(KeyEvent& keyEvent)
+void TextBox::keyPressed(KeyEvent& event)
{
- const Key &key = keyEvent.getKey();
- const int action = keyEvent.getActionId();
+ const Key &key = event.getKey();
+ const int action = event.getActionId();
switch (action)
{
@@ -430,7 +430,7 @@ void TextBox::keyPressed(KeyEvent& keyEvent)
adjustSize();
scrollToCaret();
- keyEvent.consume();
+ event.consume();
}
void TextBox::draw(Graphics* graphics)