diff options
author | Michele Calgaro <[email protected]> | 2021-02-27 15:28:40 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-02-27 15:28:40 +0900 |
commit | 64d40d992ecb290a7d395b14e5d3b81e4ed074d2 (patch) | |
tree | 620066cb47066d1919c7fdfba8dba5f544c97f0b /src/VButton.h | |
parent | 43425b84f70794eeb975f6811b7dacc3cec01cd2 (diff) | |
download | kvkbd-64d40d992ecb290a7d395b14e5d3b81e4ed074d2.tar.gz kvkbd-64d40d992ecb290a7d395b14e5d3b81e4ed074d2.zip |
Keys color can now be changed without the need to restart the
application.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/VButton.h')
-rw-r--r-- | src/VButton.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/VButton.h b/src/VButton.h index 7f04fd0..2f916ff 100644 --- a/src/VButton.h +++ b/src/VButton.h @@ -11,15 +11,17 @@ Q_OBJECT public: VButton(TQWidget *parent=0, const char *name=0); ~VButton(); - void setKeyCode(unsigned int keycode); + unsigned int getKeyCode(); - void setText(const TQString& text); - void setShiftText(const TQString& text); + void setKeyCode(unsigned int keycode); + 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(); + static double pw; static double ph; @@ -32,7 +34,8 @@ protected: TQString u; TQString l; TQRect orig_size; - void timerEvent ( TQTimerEvent * ); + + void timerEvent ( TQTimerEvent * ); public slots: void sendKey(); @@ -44,7 +47,6 @@ protected slots: signals: void keyClick(unsigned int keycode); - }; #endif |