summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-18 21:00:48 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-18 21:00:48 +0100
commitc1973bc4d4ec9d8d18a690359a2d649905e35264 (patch)
tree045c4d5afc28422319c4e20322fbafe97fefd280 /plugingui/button.cc
parentf11a61a36fa5e21b0c6c2362af2952a3f87408a0 (diff)
Refactored Slider. Expanded all event variable names (all was 'e' before). Changed all uievent enums to enum classes.
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index 5ff97a7..baa3067 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -81,9 +81,9 @@ Button::~Button()
delete(box_down.center);
}
-void Button::buttonEvent(ButtonEvent *e)
+void Button::buttonEvent(ButtonEvent* buttonEvent)
{
- if(e->direction == ButtonEvent::Down)
+ if(buttonEvent->direction == Direction::down)
{
draw_state = down;
button_state = down;
@@ -91,7 +91,7 @@ void Button::buttonEvent(ButtonEvent *e)
repaintEvent(nullptr);
}
- if(e->direction == ButtonEvent::Up)
+ if(buttonEvent->direction == Direction::up)
{
draw_state = up;
button_state = up;
@@ -104,7 +104,7 @@ void Button::buttonEvent(ButtonEvent *e)
}
}
-void Button::repaintEvent(RepaintEvent *e)
+void Button::repaintEvent(RepaintEvent* repaintEvent)
{
Painter p(*this);