summaryrefslogtreecommitdiff
path: root/plugingui/scrollbar.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/scrollbar.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/scrollbar.cc')
-rw-r--r--plugingui/scrollbar.cc8
1 files changed, 4 insertions, 4 deletions
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::