From 151caf049c95368347a6243e85e04a50c87d0e5e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 12 Oct 2015 13:22:12 +0200 Subject: Fix missing 'direction' type changes (int to enum). --- plugingui/knob.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugingui/knob.cc') diff --git a/plugingui/knob.cc b/plugingui/knob.cc index 765d401..ec35af0 100644 --- a/plugingui/knob.cc +++ b/plugingui/knob.cc @@ -89,7 +89,7 @@ void Knob::mouseMoveEvent(MouseMoveEvent *e) void Knob::keyEvent(KeyEvent *e) { - if(e->direction != -1) + if(e->direction != KeyEvent::Up) { return; } @@ -123,13 +123,13 @@ void Knob::keyEvent(KeyEvent *e) void Knob::buttonEvent(ButtonEvent *e) { - if(e->direction == 1) + if(e->direction == ButtonEvent::Down) { state = down; mouse_offset_x = e->x + -1*e->y; } - if(e->direction == -1) + if(e->direction == ButtonEvent::Up) { state = up; mouse_offset_x = e->x + -1*e->y; -- cgit v1.2.3