You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
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:
@@ -557,8 +557,8 @@ const char *FindInFilesPanel::SIGNAL_FILES_MODIFIED = "files_modified";
|
||||
FindInFilesPanel::FindInFilesPanel() {
|
||||
|
||||
_finder = memnew(FindInFiles);
|
||||
_finder->connect_compat(FindInFiles::SIGNAL_RESULT_FOUND, this, "_on_result_found");
|
||||
_finder->connect_compat(FindInFiles::SIGNAL_FINISHED, this, "_on_finished");
|
||||
_finder->connect(FindInFiles::SIGNAL_RESULT_FOUND, callable_mp(this, &FindInFilesPanel::_on_result_found));
|
||||
_finder->connect(FindInFiles::SIGNAL_FINISHED, callable_mp(this, &FindInFilesPanel::_on_finished));
|
||||
add_child(_finder);
|
||||
|
||||
VBoxContainer *vbc = memnew(VBoxContainer);
|
||||
|
||||
Reference in New Issue
Block a user