1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

Use fooEvent() type names for the virtual event handlers.

This commit is contained in:
Andreas Kling 2018-10-13 22:51:50 +02:00
parent dfb70ed234
commit a3fb19fe9c
20 changed files with 84 additions and 84 deletions

View file

@ -21,7 +21,7 @@ void TextBox::setText(String&& text)
update();
}
void TextBox::onPaint(PaintEvent&)
void TextBox::paintEvent(PaintEvent&)
{
Painter painter(*this);
@ -63,7 +63,7 @@ void TextBox::onPaint(PaintEvent&)
}
}
void TextBox::onMouseDown(MouseEvent&)
void TextBox::mouseDownEvent(MouseEvent&)
{
}
@ -90,7 +90,7 @@ void TextBox::handleBackspace()
update();
}
void TextBox::onKeyDown(KeyEvent& event)
void TextBox::keyDownEvent(KeyEvent& event)
{
switch (event.key()) {
case KeyboardKey::LeftArrow:
@ -126,7 +126,7 @@ void TextBox::onKeyDown(KeyEvent& event)
}
}
void TextBox::onTimer(TimerEvent&)
void TextBox::timerEvent(TimerEvent&)
{
// FIXME: Disable the timer when not focused.
if (!isFocused())