From 84954cd78d6e0fa8eff24e7a0558f48748e4ba47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Wed, 12 Apr 2017 22:29:17 +0200 Subject: Fit text of TextEdit to widget size of resize. --- plugingui/textedit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugingui/textedit.h') diff --git a/plugingui/textedit.h b/plugingui/textedit.h index 83a7627..8df14b0 100644 --- a/plugingui/textedit.h +++ b/plugingui/textedit.h @@ -53,6 +53,7 @@ public: void setReadOnly(bool readonly); bool readOnly(); + void adaptTextOnResize(bool adapt); void preprocessText(); Notifier<> textChangedNotifier; @@ -74,6 +75,7 @@ private: std::string _text; + bool adapt_text_on_resize{false}; bool readonly{true}; std::list< std::string > preprocessedtext; -- cgit v1.2.3