diff options
author | Michele Calgaro <[email protected]> | 2021-02-20 18:41:31 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-02-20 18:42:25 +0900 |
commit | cf258cdbd6132a549d87abbd285e5aa663130d72 (patch) | |
tree | 9b8fc9fa9cb3c70ae1b5c65480fe5b6330c95ecc /src/numpadvbutton.cpp | |
parent | 543ee0948ccb0138453a99bff403c780b974a79f (diff) | |
download | kvkbd-cf258cdbd6132a549d87abbd285e5aa663130d72.tar.gz kvkbd-cf258cdbd6132a549d87abbd285e5aa663130d72.zip |
Simplified code for numpad buttons. This adds on to PR #9.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 47d89f2d15ad750689d6376234b37b85e1ab5704)
Diffstat (limited to 'src/numpadvbutton.cpp')
-rw-r--r-- | src/numpadvbutton.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
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" |