diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-16 13:59:43 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-05-16 14:00:11 -0300 |
commit | e62e7fd768467aad9452cacf7331caee7f730020 (patch) | |
tree | bdf5b397a5ae6f8a6d6dba6a080fded0471a6e36 | |
parent | 045451e58d847201017042b052b54198688bb288 (diff) |
Properly show the property name on tooltip
-rw-r--r-- | editor/editor_inspector.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 21ad71fe06..6129387a5c 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); |