Merge pull request #7109 from volzhs/emit-signal-from-set

Emit "*_changed" signal in set_*
This commit is contained in:
George Marques 2016-11-14 13:46:28 -02:00 committed by GitHub
commit e167c664c8
3 changed files with 3 additions and 1 deletions

View file

@ -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{

View file

@ -918,6 +918,7 @@ void LineEdit::set_text(String p_text) {
update();
cursor_pos=0;
window_pos=0;
_text_changed();
}
void LineEdit::clear() {

View file

@ -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);
};