From 18069e35a2d1e8a13511c32dd965aac5002dae5f Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 26 Feb 2010 10:30:18 +0000 Subject: Make disabled widgets drawn as valid always (non-red). --- 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..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()); + } +} -- cgit v1.2.3