diff options
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() { |