summaryrefslogtreecommitdiff
path: root/client/widgets/radiobuttons.cc
diff options
context:
space:
mode:
authordeva <deva>2010-02-26 10:30:18 +0000
committerdeva <deva>2010-02-26 10:30:18 +0000
commit18069e35a2d1e8a13511c32dd965aac5002dae5f (patch)
tree8441293ad40d0c45d852bd8b1f14fbd6f5e484b4 /client/widgets/radiobuttons.cc
parent3b6ec8ab7a007f65eb75ed377f4e4984257e5ba8 (diff)
Make disabled widgets drawn as valid always (non-red).
Diffstat (limited to 'client/widgets/radiobuttons.cc')
-rw-r--r--client/widgets/radiobuttons.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/widgets/radiobuttons.cc b/client/widgets/radiobuttons.cc
index d11c3e5..9c5f8ad 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(!isEnabled());
+ }
+}