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/checkbox.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui/checkbox.cc') diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc index 54e0787..c085be9 100644 --- a/plugingui/checkbox.cc +++ b/plugingui/checkbox.cc @@ -44,7 +44,7 @@ CheckBox::CheckBox(Widget *parent) void CheckBox::buttonEvent(ButtonEvent *e) { - if(e->direction == -1 || e->doubleclick) + if(e->direction == ButtonEvent::Up || e->doubleclick) { middle = false; internalSetChecked(!state); @@ -67,7 +67,7 @@ void CheckBox::keyEvent(KeyEvent *e) { if(e->keycode == KeyEvent::KEY_CHARACTER && e->text == " ") { - if(e->direction == -1) + if(e->direction == KeyEvent::Up) { middle = false; internalSetChecked(!state); -- cgit v1.2.3