From dd8d52708461bcd9d5fd11f62fc59f18fcfc542e Mon Sep 17 00:00:00 2001 From: Ray-V Date: Fri, 26 Feb 2021 13:02:18 +0900 Subject: Added functionality to select keyboard background and keys colors. A restart of the application is required if the keys color is changed. Signed-off-by: Ray-V Signed-off-by: Michele Calgaro --- src/VButton.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/VButton.cpp') diff --git a/src/VButton.cpp b/src/VButton.cpp index 48c7cf7..58b2a1b 100644 --- a/src/VButton.cpp +++ b/src/VButton.cpp @@ -1,18 +1,21 @@ #include "VButton.h" #include #include +#include +#include double VButton::pw=550.0; double VButton::ph=235.0; VButton::VButton(TQWidget *parent, const char *name): TQPushButton (parent,name) { - - //connect(this,TQT_SIGNAL(clicked()),this,TQT_SLOT(sendKey())); + TDEConfig *cfg = TDEApplication::kApplication()->config(); + TQString keysC = cfg->readEntry("keysColor", "#f0f0f0"); + setPaletteBackgroundColor(TQColor(keysC)); + setFocusPolicy(TQ_NoFocus); resize(30,30); press=false; - } VButton::~VButton() { -- cgit v1.2.3