From 64d40d992ecb290a7d395b14e5d3b81e4ed074d2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 27 Feb 2021 15:28:40 +0900 Subject: Keys color can now be changed without the need to restart the application. Signed-off-by: Michele Calgaro --- src/VButton.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/VButton.h') 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 -- cgit v1.2.1