From c1973bc4d4ec9d8d18a690359a2d649905e35264 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 18 Nov 2015 21:00:48 +0100 Subject: Refactored Slider. Expanded all event variable names (all was 'e' before). Changed all uievent enums to enum classes. --- plugingui/scrollbar.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugingui/scrollbar.cc') diff --git a/plugingui/scrollbar.cc b/plugingui/scrollbar.cc index 7e6d47a..2a9d3fd 100644 --- a/plugingui/scrollbar.cc +++ b/plugingui/scrollbar.cc @@ -178,7 +178,7 @@ void ScrollBar::buttonEvent(ButtonEvent* buttonEvent) { if((buttonEvent->y < (int)width()) && buttonEvent->y > 0) { - if(buttonEvent->direction == ButtonEvent::Down) + if(buttonEvent->direction == Direction::down) { addValue(-1); } @@ -189,7 +189,7 @@ void ScrollBar::buttonEvent(ButtonEvent* buttonEvent) if((buttonEvent->y > ((int)height() - (int)width())) && (buttonEvent->y < (int)height())) { - if(buttonEvent->direction == ButtonEvent::Down) + if(buttonEvent->direction == Direction::down) { addValue(1); } @@ -197,13 +197,13 @@ void ScrollBar::buttonEvent(ButtonEvent* buttonEvent) return; } - if(buttonEvent->direction == ButtonEvent::Down) + if(buttonEvent->direction == Direction::down) { yOffset = buttonEvent->y; valueOffset = value(); } - dragging = (buttonEvent->direction == ButtonEvent::Down); + dragging = (buttonEvent->direction == Direction::down); } } // GUI:: -- cgit v1.2.3