Merge pull request #71379 from KoBeWi/destruction_of_compatibility_function
Remove set_drag_forwarding_compat()
This commit is contained in:
commit
bcaf048f33
33 changed files with 34 additions and 152 deletions
|
|
@ -561,15 +561,13 @@ bool EditorPropertyPath::_can_drop_data_fw(const Point2 &p_point, const Variant
|
|||
}
|
||||
|
||||
void EditorPropertyPath::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("_can_drop_data_fw", "position", "data", "from"), &EditorPropertyPath::_can_drop_data_fw);
|
||||
ClassDB::bind_method(D_METHOD("_drop_data_fw", "position", "data", "from"), &EditorPropertyPath::_drop_data_fw);
|
||||
}
|
||||
|
||||
EditorPropertyPath::EditorPropertyPath() {
|
||||
HBoxContainer *path_hb = memnew(HBoxContainer);
|
||||
add_child(path_hb);
|
||||
path = memnew(LineEdit);
|
||||
path->set_drag_forwarding_compat(this);
|
||||
SET_DRAG_FORWARDING_CDU(path, EditorPropertyPath);
|
||||
path->set_structured_text_bidi_override(TextServer::STRUCTURED_TEXT_FILE);
|
||||
path_hb->add_child(path);
|
||||
path->connect("text_submitted", callable_mp(this, &EditorPropertyPath::_path_selected));
|
||||
|
|
@ -3673,8 +3671,6 @@ void EditorPropertyNodePath::_notification(int p_what) {
|
|||
}
|
||||
|
||||
void EditorPropertyNodePath::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("_can_drop_data_fw", "position", "data", "from"), &EditorPropertyNodePath::can_drop_data_fw);
|
||||
ClassDB::bind_method(D_METHOD("_drop_data_fw", "position", "data", "from"), &EditorPropertyNodePath::drop_data_fw);
|
||||
}
|
||||
|
||||
EditorPropertyNodePath::EditorPropertyNodePath() {
|
||||
|
|
@ -3686,7 +3682,7 @@ EditorPropertyNodePath::EditorPropertyNodePath() {
|
|||
assign->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
assign->set_clip_text(true);
|
||||
assign->connect("pressed", callable_mp(this, &EditorPropertyNodePath::_node_assign));
|
||||
assign->set_drag_forwarding_compat(this);
|
||||
SET_DRAG_FORWARDING_CD(assign, EditorPropertyNodePath);
|
||||
hbc->add_child(assign);
|
||||
|
||||
clear = memnew(Button);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue