summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textbox.cpp')
-rw-r--r--src/gui/widgets/textbox.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp
index 0d2ac611e..905347f89 100644
--- a/src/gui/widgets/textbox.cpp
+++ b/src/gui/widgets/textbox.cpp
@@ -645,3 +645,9 @@ void TextBox::adjustSize()
setWidth(width + 1);
setHeight(font->getHeight() * CAST_S32(mTextRows.size()));
}
+
+void TextBox::setEditable(const bool editable)
+{
+ mEditable = editable;
+ mSelectable = editable;
+}