summaryrefslogtreecommitdiff
path: root/client/widgets/textedit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/textedit.cc')
-rw-r--r--client/widgets/textedit.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/widgets/textedit.cc b/client/widgets/textedit.cc
index ec7e3fc..83ef62a 100644
--- a/client/widgets/textedit.cc
+++ b/client/widgets/textedit.cc
@@ -115,3 +115,18 @@ void TextEdit::setVisibility(bool visible)
{
setVisible(visible);
}
+
+void TextEdit::enable()
+{
+ setEnabled(true);
+}
+
+void TextEdit::disable()
+{
+ setEnabled(false);
+}
+
+bool TextEdit::isDisabled()
+{
+ return isEnabled() == false;
+}