summaryrefslogtreecommitdiff
path: root/plugingui/slider.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-10-12 13:22:12 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-10-12 13:22:12 +0200
commit151caf049c95368347a6243e85e04a50c87d0e5e (patch)
treeb2e5481c84a13dc593ddc5caef40aac1df208a36 /plugingui/slider.cc
parent4dcddacbe63574c27296d5266554d8d6667367f1 (diff)
Fix missing 'direction' type changes (int to enum).
Diffstat (limited to 'plugingui/slider.cc')
-rw-r--r--plugingui/slider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/slider.cc b/plugingui/slider.cc
index 953c8e6..311497a 100644
--- a/plugingui/slider.cc
+++ b/plugingui/slider.cc
@@ -77,7 +77,7 @@ void GUI::Slider::mouseMoveEvent(MouseMoveEvent *e)
void GUI::Slider::buttonEvent(ButtonEvent *e)
{
- if(e->direction == 1) {
+ if(e->direction == ButtonEvent::Down) {
state = down;
val = maximum / (float)width() * (float)e->x;
@@ -87,7 +87,7 @@ void GUI::Slider::buttonEvent(ButtonEvent *e)
if(handler) handler(ptr);
repaintEvent(NULL);
}
- if(e->direction == -1) {
+ if(e->direction == ButtonEvent::Up) {
state = up;
val = maximum / (float)width() * (float)e->x;