From 6391eee732d7516a30eb93cddea4cf190026da94 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 26 Feb 2010 10:45:50 +0000 Subject: Make disabled widgets drawn as valid always (non-red). --- client/widgets/radiobuttons.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/widgets/radiobuttons.cc') diff --git a/client/widgets/radiobuttons.cc b/client/widgets/radiobuttons.cc index 9c5f8ad..e4555ff 100644 --- a/client/widgets/radiobuttons.cc +++ b/client/widgets/radiobuttons.cc @@ -187,6 +187,6 @@ bool RadioButtons::isDisabled() void RadioButtons::changeEvent(QEvent *event) { if(event->type() == QEvent::EnabledChange) { - setBGColor(!isEnabled()); + setBGColor(isValid() || !isEnabled()); } } -- cgit v1.2.3