summaryrefslogtreecommitdiff
path: root/plugingui/textedit.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-18 10:58:52 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-18 10:58:52 +0200
commit37cb6cefcab6be0a1337e0a346d6e259f8dbbb5f (patch)
treee85d93bc3557ae6216cfc3634a9821ffdc015a88 /plugingui/textedit.cc
parent8ba4c6c7f3317d9e3c4465be15265e7f72d4ab28 (diff)
Revert preprocessing on resize for TextEdit. It was just plain dumb.
Diffstat (limited to 'plugingui/textedit.cc')
-rw-r--r--plugingui/textedit.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/plugingui/textedit.cc b/plugingui/textedit.cc
index 63b4cd4..abfb3ab 100644
--- a/plugingui/textedit.cc
+++ b/plugingui/textedit.cc
@@ -56,12 +56,6 @@ void TextEdit::resize(std::size_t width, std::size_t height)
Widget::resize(width, height);
scroll.resize(scroll.width(), height - 14);
scroll.move(width - 23, 7);
-
- // TODO: This might be bad for performance. Improve at some point.
- if (adapt_text_on_resize)
- {
- preprocessText();
- }
}
void TextEdit::setReadOnly(bool readonly)
@@ -88,11 +82,6 @@ std::string TextEdit::text()
return _text;
}
-void TextEdit::adaptTextOnResize(bool adapt)
-{
- adapt_text_on_resize = adapt;
-}
-
void TextEdit::preprocessText()
{
preprocessedtext.clear();