summaryrefslogtreecommitdiff
path: root/client/widgets/listbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/listbox.cc')
-rw-r--r--client/widgets/listbox.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/widgets/listbox.cc b/client/widgets/listbox.cc
index 303d288..bddc34f 100644
--- a/client/widgets/listbox.cc
+++ b/client/widgets/listbox.cc
@@ -143,3 +143,18 @@ bool ListBox::setKeyboardFocus()
setFocus();
return true;
}
+
+void ListBox::enable()
+{
+ setEnabled(true);
+}
+
+void ListBox::disable()
+{
+ setEnabled(false);
+}
+
+bool ListBox::isDisabled()
+{
+ return isEnabled() == false;
+}