diff options
Diffstat (limited to 'client/widgets/button.cc')
-rw-r--r-- | client/widgets/button.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/widgets/button.cc b/client/widgets/button.cc index 6032678..963242c 100644 --- a/client/widgets/button.cc +++ b/client/widgets/button.cc @@ -141,3 +141,18 @@ void Button::reset() { if(resetToDisabled) setEnabled(false); } + +void Button::enable() +{ + setEnabled(true); +} + +void Button::disable() +{ + setEnabled(false); +} + +bool Button::isDisabled() +{ + return isEnabled() == false; +} |