From e62e7fd768467aad9452cacf7331caee7f730020 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 16 May 2018 13:59:43 -0300 Subject: [PATCH] Properly show the property name on tooltip --- editor/editor_inspector.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 21ad71fe062..6129387a5cf 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1324,7 +1324,11 @@ void EditorInspector::update_tree() { ep->connect("multiple_properties_changed", this, "_multiple_properties_changed"); ep->connect("resource_selected", this, "_resource_selected", varray(), CONNECT_DEFERRED); ep->connect("object_id_selected", this, "_object_id_selected", varray(), CONNECT_DEFERRED); - ep->set_tooltip(doc_hint); + if (doc_hint != String()) { + ep->set_tooltip(TTR("Property: ") + p.name + "\n\n" + doc_hint); + } else { + ep->set_tooltip(TTR("Property: ") + p.name); + } ep->set_draw_red(draw_red); ep->set_checkable(checkable); ep->set_checked(checked);