diff options
author | deva <deva> | 2010-04-29 12:26:01 +0000 |
---|---|---|
committer | deva <deva> | 2010-04-29 12:26:01 +0000 |
commit | 0d76adfb6dce6dec1367913752f7b0a818e1bc21 (patch) | |
tree | db67eab193681dea72df4a14bbdac39b67fcf106 /client/widgets/radiobuttons.cc | |
parent | c96a2e557f0a9322c9369a06041e894cc2f11e93 (diff) |
Backported some widget behaviour from head.
Diffstat (limited to 'client/widgets/radiobuttons.cc')
-rw-r--r-- | client/widgets/radiobuttons.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/widgets/radiobuttons.cc b/client/widgets/radiobuttons.cc index d11c3e5..e4555ff 100644 --- a/client/widgets/radiobuttons.cc +++ b/client/widgets/radiobuttons.cc @@ -183,3 +183,10 @@ bool RadioButtons::isDisabled() { return isEnabled() == false; } + +void RadioButtons::changeEvent(QEvent *event) +{ + if(event->type() == QEvent::EnabledChange) { + setBGColor(isValid() || !isEnabled()); + } +} |