From 37cb6cefcab6be0a1337e0a346d6e259f8dbbb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Tue, 18 Apr 2017 10:58:52 +0200 Subject: Revert preprocessing on resize for TextEdit. It was just plain dumb. --- plugingui/textedit.cc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'plugingui/textedit.cc') 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(); -- cgit v1.2.3