Merge pull request #7109 from volzhs/emit-signal-from-set
Emit "*_changed" signal in set_*
This commit is contained in:
commit
e167c664c8
3 changed files with 3 additions and 1 deletions
|
@ -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{
|
||||
|
||||
|
|
|
@ -918,6 +918,7 @@ void LineEdit::set_text(String p_text) {
|
|||
update();
|
||||
cursor_pos=0;
|
||||
window_pos=0;
|
||||
_text_changed();
|
||||
}
|
||||
|
||||
void LineEdit::clear() {
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue