diff options
author | deva <deva> | 2009-01-15 07:24:30 +0000 |
---|---|---|
committer | deva <deva> | 2009-01-15 07:24:30 +0000 |
commit | 4497bea2b68a883d1bed72797f27275c833843ea (patch) | |
tree | bba910d80a4384721ae6b13c64afc54735a16a98 /client/widgets/radiobuttons.cc | |
parent | 6a81913f64590c6e49431ce483e00c8fc60573a4 (diff) |
Added isDisabled method to all widget classes and made sure that only enabled widgets send their values on commit.
Diffstat (limited to 'client/widgets/radiobuttons.cc')
-rw-r--r-- | client/widgets/radiobuttons.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/widgets/radiobuttons.cc b/client/widgets/radiobuttons.cc index ae40677..5846ff7 100644 --- a/client/widgets/radiobuttons.cc +++ b/client/widgets/radiobuttons.cc @@ -140,3 +140,18 @@ void RadioButtons::childChanged() { emit wasChanged(); } + +void RadioButtons::enable() +{ + setEnabled(true); +} + +void RadioButtons::disable() +{ + setEnabled(false); +} + +bool RadioButtons::isDisabled() +{ + return isEnabled() == false; +} |