From 0d76adfb6dce6dec1367913752f7b0a818e1bc21 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 29 Apr 2010 12:26:01 +0000 Subject: Backported some widget behaviour from head. --- client/widgets/radiobuttons.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/widgets/radiobuttons.cc') 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()); + } +} -- cgit v1.2.3