summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-01 00:53:11 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-01 00:53:11 +0300
commit3f632c818b2041b36b6e5209e2ca6bfb2c6f4479 (patch)
tree07524f0f636519d99b61ff5fa193d1a20a56ddb0 /src/gui/widgets/textbox.cpp
parent3af105edb6f4823e6d32b7d793bdb9cfbe2582dd (diff)
downloadmanaplus-3f632c818b2041b36b6e5209e2ca6bfb2c6f4479.tar.gz
manaplus-3f632c818b2041b36b6e5209e2ca6bfb2c6f4479.tar.bz2
manaplus-3f632c818b2041b36b6e5209e2ca6bfb2c6f4479.tar.xz
manaplus-3f632c818b2041b36b6e5209e2ca6bfb2c6f4479.zip
Dont allow select textboxes without editable flag.
This allow drag window by clicking on textboxes.
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;
+}