From 4497bea2b68a883d1bed72797f27275c833843ea Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 15 Jan 2009 07:24:30 +0000 Subject: Added isDisabled method to all widget classes and made sure that only enabled widgets send their values on commit. --- client/widgets/groupbox.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/widgets/groupbox.cc') diff --git a/client/widgets/groupbox.cc b/client/widgets/groupbox.cc index f6c9b28..e6f8b97 100644 --- a/client/widgets/groupbox.cc +++ b/client/widgets/groupbox.cc @@ -55,6 +55,11 @@ void GroupBox::disable() setEnabled(false); } +bool GroupBox::isDisabled() +{ + return isEnabled() == false; +} + void GroupBox::connectFrom(const char *signal, const QObject *receiver, const char *method) { -- cgit v1.2.3