From e6a4debede608808d2aac5985a1ad8415d5dc7cd Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 9 Jan 2023 19:24:36 +0100 Subject: Change set_drag_forwarding() to use callables. * This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899 --- editor/export/project_export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/export') diff --git a/editor/export/project_export.cpp b/editor/export/project_export.cpp index 3e06633cc8..df5d2dcd29 100644 --- a/editor/export/project_export.cpp +++ b/editor/export/project_export.cpp @@ -1023,7 +1023,7 @@ ProjectExportDialog::ProjectExportDialog() { mc->set_v_size_flags(Control::SIZE_EXPAND_FILL); presets = memnew(ItemList); // TODO: Must reimplement drag forwarding. - //presets->set_drag_forwarding(this); + //presets->set_drag_forwarding_compat(this); mc->add_child(presets); presets->connect("item_selected", callable_mp(this, &ProjectExportDialog::_edit_preset)); duplicate_preset = memnew(Button); -- cgit v1.2.3