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/altcombobox.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/widgets/altcombobox.cc') diff --git a/client/widgets/altcombobox.cc b/client/widgets/altcombobox.cc index c68f816..352cd19 100644 --- a/client/widgets/altcombobox.cc +++ b/client/widgets/altcombobox.cc @@ -203,6 +203,11 @@ void AltComboBox::disable() setEnabled(false); } +bool AltComboBox::isDisabled() +{ + return isEnabled() == false; +} + void AltComboBox::onChildChange() { emit wasChanged(); -- cgit v1.2.3