diff options
author | Michele Calgaro <[email protected]> | 2021-02-20 18:41:31 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-02-20 18:41:31 +0900 |
commit | 47d89f2d15ad750689d6376234b37b85e1ab5704 (patch) | |
tree | 43e581e1344487d0ad08aacf2188119407e9e2ca /src/numpadvbutton.cpp | |
parent | 8bbaa8f9fed784d11bda8ea90ef94bf47f92b90d (diff) | |
download | kvkbd-47d89f2d15ad750689d6376234b37b85e1ab5704.tar.gz kvkbd-47d89f2d15ad750689d6376234b37b85e1ab5704.zip |
Simplified code for numpad buttons. This adds on to PR #9.
Signed-off-by: Michele Calgaro <[email protected]>
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" |