Merge pull request #71379 from KoBeWi/destruction_of_compatibility_function
Remove set_drag_forwarding_compat()
This commit is contained in:
@ -1823,19 +1823,6 @@ bool Control::is_focus_owner_in_shortcut_context() const {
|
||||
|
||||
// Drag and drop handling.
|
||||
|
||||
void Control::set_drag_forwarding_compat(Object *p_base) {
|
||||
if (p_base != nullptr) {
|
||||
data.forward_drag = Callable(p_base, "_get_drag_data_fw").bind(this);
|
||||
data.forward_can_drop = Callable(p_base, "_can_drop_data_fw").bind(this);
|
||||
data.forward_drop = Callable(p_base, "_drop_data_fw").bind(this);
|
||||
|
||||
} else {
|
||||
data.forward_drag = Callable();
|
||||
data.forward_can_drop = Callable();
|
||||
data.forward_drop = Callable();
|
||||
}
|
||||
}
|
||||
|
||||
void Control::set_drag_forwarding(const Callable &p_drag, const Callable &p_can_drop, const Callable &p_drop) {
|
||||
data.forward_drag = p_drag;
|
||||
data.forward_can_drop = p_can_drop;
|
||||
|
||||
Reference in New Issue
Block a user