diff options
author | Michele Calgaro <[email protected]> | 2021-03-13 21:39:00 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-03-13 21:39:00 +0900 |
commit | 00e207e95d5aab6bbc37c8178bd189b0c0619be6 (patch) | |
tree | d7ce4d55e87a33ec2bb9e20ed209fedae90e4096 /src/VButton.h | |
parent | fb22ce0a5666025d9964522561f83d9b6008e4ad (diff) | |
download | kvkbd-00e207e95d5aab6bbc37c8178bd189b0c0619be6.tar.gz kvkbd-00e207e95d5aab6bbc37c8178bd189b0c0619be6.zip |
Fixed key text display when shift is used (caps is still broken) as well
as several improvements to the code.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/VButton.h')
-rw-r--r-- | src/VButton.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/VButton.h b/src/VButton.h index 2f916ff..cab13cd 100644 --- a/src/VButton.h +++ b/src/VButton.h @@ -17,7 +17,6 @@ public: void setText(const TQString &text); void setShiftText(const TQString &text); void setColor(const TQColor &color); - void capsPressed(bool press); void reposition(int width, int height); void res(); @@ -28,6 +27,7 @@ public: private: bool press; bool inrpt; + bool inside; protected: unsigned int keycode; @@ -42,6 +42,8 @@ public slots: void shiftPressed(bool press); protected slots: + void enterEvent(TQEvent *e); + void leaveEvent(TQEvent *e); void mousePressEvent(TQMouseEvent *e); void mouseReleaseEvent(TQMouseEvent *e); |