|
@@ -3554,7 +3554,7 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
|
|
icon_size_x = icon_region.size.width;
|
|
icon_size_x = icon_region.size.width;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // Icon is treated as if it is outside of the rect so that double clicking on it will emit the item_double_clicked signal.
|
|
|
|
|
|
+ // Icon is treated as if it is outside of the rect so that double clicking on it will emit the item_icon_double_clicked signal.
|
|
if (rtl) {
|
|
if (rtl) {
|
|
mpos.x = get_size().width - (mpos.x + icon_size_x);
|
|
mpos.x = get_size().width - (mpos.x + icon_size_x);
|
|
} else {
|
|
} else {
|
|
@@ -3562,10 +3562,10 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
|
|
}
|
|
}
|
|
if (rect.has_point(mpos)) {
|
|
if (rect.has_point(mpos)) {
|
|
if (!edit_selected()) {
|
|
if (!edit_selected()) {
|
|
- emit_signal(SNAME("item_double_clicked"));
|
|
|
|
|
|
+ emit_signal(SNAME("item_icon_double_clicked"));
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- emit_signal(SNAME("item_double_clicked"));
|
|
|
|
|
|
+ emit_signal(SNAME("item_icon_double_clicked"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
pressing_for_editor = false;
|
|
pressing_for_editor = false;
|
|
@@ -5257,7 +5257,7 @@ void Tree::_bind_methods() {
|
|
ADD_SIGNAL(MethodInfo("item_edited"));
|
|
ADD_SIGNAL(MethodInfo("item_edited"));
|
|
ADD_SIGNAL(MethodInfo("custom_item_clicked", PropertyInfo(Variant::INT, "mouse_button_index")));
|
|
ADD_SIGNAL(MethodInfo("custom_item_clicked", PropertyInfo(Variant::INT, "mouse_button_index")));
|
|
ADD_SIGNAL(MethodInfo("item_custom_button_pressed"));
|
|
ADD_SIGNAL(MethodInfo("item_custom_button_pressed"));
|
|
- ADD_SIGNAL(MethodInfo("item_double_clicked"));
|
|
|
|
|
|
+ ADD_SIGNAL(MethodInfo("item_icon_double_clicked"));
|
|
ADD_SIGNAL(MethodInfo("item_collapsed", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem")));
|
|
ADD_SIGNAL(MethodInfo("item_collapsed", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem")));
|
|
ADD_SIGNAL(MethodInfo("check_propagated_to_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem"), PropertyInfo(Variant::INT, "column")));
|
|
ADD_SIGNAL(MethodInfo("check_propagated_to_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem"), PropertyInfo(Variant::INT, "column")));
|
|
ADD_SIGNAL(MethodInfo("button_clicked", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem"), PropertyInfo(Variant::INT, "column"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::INT, "mouse_button_index")));
|
|
ADD_SIGNAL(MethodInfo("button_clicked", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem"), PropertyInfo(Variant::INT, "column"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::INT, "mouse_button_index")));
|