summaryrefslogtreecommitdiffstats
path: root/src/VButton.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-03-13 21:39:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-03-13 21:40:38 +0900
commit18657676cc04c0d2d50edf5bf23d690b0915f27c (patch)
tree7a60b097af43e531b7f174a750e865adf3a55f4f /src/VButton.h
parentfb507b7f3fce6a680ab0f5767f4ea58b62e40fba (diff)
downloadkvkbd-18657676cc04c0d2d50edf5bf23d690b0915f27c.tar.gz
kvkbd-18657676cc04c0d2d50edf5bf23d690b0915f27c.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 <michele.calgaro@yahoo.it> (cherry picked from commit 00e207e95d5aab6bbc37c8178bd189b0c0619be6)
Diffstat (limited to 'src/VButton.h')
-rw-r--r--src/VButton.h4
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);