diff options
author | volzhs <volzhs@gmail.com> | 2016-11-14 04:21:29 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2016-11-14 04:21:29 +0900 |
commit | 384625aa31a3627c25246e06c1fbc3019866765c (patch) | |
tree | 5e6e4d8bbdb85ff8051d505411e99bb86aa11823 /scene | |
parent | c93c2a6be8ad0abbfd5cae4831ff2ce2200ae6f6 (diff) |
Emit "*_changed" signal in set_*
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/color_picker.cpp | 1 | ||||
-rw-r--r-- | scene/gui/line_edit.cpp | 1 | ||||
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 5e66544153..d6535ef511 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -660,6 +660,7 @@ void ColorPickerButton::set_color(const Color& p_color){ picker->set_color(p_color); update(); + emit_signal("color_changed",p_color); } Color ColorPickerButton::get_color() const{ diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index eecc730f5c..0b06044b7c 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -918,6 +918,7 @@ void LineEdit::set_text(String p_text) { update(); cursor_pos=0; window_pos=0; + _text_changed(); } void LineEdit::clear() { diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 871a3ca68f..c585fff2a6 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3327,7 +3327,7 @@ void TextEdit::set_text(String p_text){ cursor_set_column(0); update(); setting_text=false; - + _text_changed_emit(); //get_range()->set(0); }; |