Signals: Manually port most of remaining connect_compat uses
It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
This commit is contained in:
parent
01afc442c7
commit
f742dabafe
50 changed files with 187 additions and 244 deletions
|
|
@ -1712,7 +1712,7 @@ CodeTextEditor::CodeTextEditor() {
|
|||
error->set_v_size_flags(SIZE_EXPAND | SIZE_SHRINK_CENTER);
|
||||
error->set_mouse_filter(MOUSE_FILTER_STOP);
|
||||
error->connect("gui_input", callable_mp(this, &CodeTextEditor::_error_pressed));
|
||||
find_replace_bar->connect_compat("error", error, "set_text");
|
||||
find_replace_bar->connect("error", callable_mp(error, &Label::set_text));
|
||||
|
||||
// Warnings
|
||||
warning_button = memnew(ToolButton);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue