diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-12 22:29:17 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-15 20:36:12 +0200 |
commit | 84954cd78d6e0fa8eff24e7a0558f48748e4ba47 (patch) | |
tree | e8d23ab9d21826bbf6ff412638eb08b433554f45 /plugingui/textedit.h | |
parent | 16c39e953ef0b3df06a7aee6b510de37a2bcc15c (diff) |
Fit text of TextEdit to widget size of resize.
Diffstat (limited to 'plugingui/textedit.h')
-rw-r--r-- | plugingui/textedit.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |