summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-10-03 11:48:08 +0200
committerGitHub <noreply@github.com>2016-10-03 11:48:08 +0200
commit44b741dd3c49fef26874872f9208bfa804fdecbe (patch)
treeefd8f62b94e93beebb00a12b9b5d8edd752ffb3c /tools
parent03ee749989d2681d49906b16b8a5591b46d8059b (diff)
parent623c483ebaffa8de8f9e53b3910d6cfdf8207e59 (diff)
Merge pull request #6554 from pkowal1982/propertyeditortooltips
Show True/False tooltip in property editor for bool values
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/property_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index 6641297491..7163836f73 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -3182,6 +3182,7 @@ void PropertyEditor::update_tree() {
item->set_cell_mode( 1, TreeItem::CELL_MODE_CHECK );
item->set_text(1,TTR("On"));
+ item->set_tooltip(1, obj->get(p.name) ? "True" : "False");
item->set_checked( 1, obj->get( p.name ) );
if (show_type_icons)
item->set_icon( 0, get_icon("Bool","EditorIcons") );
@@ -3828,6 +3829,7 @@ void PropertyEditor::_item_edited() {
case Variant::BOOL: {
_edit_set(name,item->is_checked(1));
+ item->set_tooltip(1, item->is_checked(1) ? "True" : "False");
} break;
case Variant::INT:
case Variant::REAL: {