From 4ac5101da154d8130b606b4509c9750332365fef Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 17 Sep 2019 18:49:04 +0300 Subject: [PATCH] Emit signal_text_changed from Entry::set_text --- source/entry.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/entry.cpp b/source/entry.cpp index 36658da..8b638de 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -56,7 +56,11 @@ void Entry::autosize_special(const Part &part, Geometry &ageom) const void Entry::set_text(const string &t) { - text = t; + if(t!=text.get()) + { + text = t; + signal_text_changed.emit(text.get()); + } set_edit_position(text.size()); } -- 2.43.0