From 47d89f2d15ad750689d6376234b37b85e1ab5704 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Feb 2021 18:41:31 +0900 Subject: Simplified code for numpad buttons. This adds on to PR #9. Signed-off-by: Michele Calgaro --- src/numpadvbutton.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/numpadvbutton.cpp') diff --git a/src/numpadvbutton.cpp b/src/numpadvbutton.cpp index 3e64fb0..722d90f 100644 --- a/src/numpadvbutton.cpp +++ b/src/numpadvbutton.cpp @@ -34,19 +34,10 @@ void NumpadVButton::numlockPressed(bool press) { if (press==true){ TQPushButton::setText(u); - VButton::setKeyCode(numlock_code); } else{ TQPushButton::setText(l); - VButton::setKeyCode(cursor_code); } } -void NumpadVButton::setKeyCode(unsigned int numpad_keycode, unsigned int cursor_keycode) -{ - cursor_code = cursor_keycode; - numlock_code = numpad_keycode; - VButton::setKeyCode(cursor_code); -} - #include "numpadvbutton.moc" -- cgit v1.2.1