Remove Signal connect binds
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
This commit is contained in:
parent
14d021287b
commit
d4433ae6d3
149 changed files with 645 additions and 708 deletions
|
|
@ -473,7 +473,7 @@ GroupDialog::GroupDialog() {
|
|||
add_group_button = memnew(Button);
|
||||
add_group_button->set_text(TTR("Add"));
|
||||
chbc->add_child(add_group_button);
|
||||
add_group_button->connect("pressed", callable_mp(this, &GroupDialog::_add_group_pressed), varray(String()));
|
||||
add_group_button->connect("pressed", callable_mp(this, &GroupDialog::_add_group_pressed).bind(String()));
|
||||
|
||||
VBoxContainer *vbc_add = memnew(VBoxContainer);
|
||||
hbc->add_child(vbc_add);
|
||||
|
|
@ -737,7 +737,7 @@ GroupsEditor::GroupsEditor() {
|
|||
add = memnew(Button);
|
||||
add->set_text(TTR("Add"));
|
||||
hbc->add_child(add);
|
||||
add->connect("pressed", callable_mp(this, &GroupsEditor::_add_group), varray(String()));
|
||||
add->connect("pressed", callable_mp(this, &GroupsEditor::_add_group).bind(String()));
|
||||
|
||||
tree = memnew(Tree);
|
||||
tree->set_hide_root(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue