diff options
author | Ray-V <[email protected]> | 2021-02-26 13:02:18 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-02-26 13:04:57 +0900 |
commit | dd8d52708461bcd9d5fd11f62fc59f18fcfc542e (patch) | |
tree | 26a64e4909a269bdf947f7886be78f892193edb1 /src/VButton.cpp | |
parent | 2b6b682830d718edf4f2bc4f660239857f6a6fca (diff) | |
download | kvkbd-dd8d52708461bcd9d5fd11f62fc59f18fcfc542e.tar.gz kvkbd-dd8d52708461bcd9d5fd11f62fc59f18fcfc542e.zip |
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 <[email protected]>
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/VButton.cpp')
-rw-r--r-- | src/VButton.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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 <tqvbox.h> #include <tqfont.h> +#include <tdeconfig.h> +#include <tdeapplication.h> 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() { |