diff options
| author | Ray-V <ray-v@inbox.lv> | 2021-02-26 13:02:18 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-02-26 13:05:40 +0900 |
| commit | 9834ca330b758a9e5b3ae89fff39f6f912163b77 (patch) | |
| tree | ecc8367a84e3270e354942c38873b34293e40e6f /src/VButton.cpp | |
| parent | 8966a83626993c2ddb55f50d261eccc512996cb8 (diff) | |
| download | kvkbd-9834ca330b758a9e5b3ae89fff39f6f912163b77.tar.gz kvkbd-9834ca330b758a9e5b3ae89fff39f6f912163b77.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 <ray-v@inbox.lv>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit dd8d52708461bcd9d5fd11f62fc59f18fcfc542e)
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() { |
