From e068fbbb2064d7dc407bbc37bbfbadb898fb1b8c Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Tue, 20 Aug 2019 15:37:22 +0200 Subject: [PATCH] Include setters and getters in help search --- editor/editor_help_search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp index fbfc999dbfb..af79c21f858 100644 --- a/editor/editor_help_search.cpp +++ b/editor/editor_help_search.cpp @@ -354,7 +354,7 @@ bool EditorHelpSearch::Runner::_phase_match_classes() { match.constants.push_back(const_cast(&class_doc.constants[i])); if (search_flags & SEARCH_PROPERTIES) for (int i = 0; i < class_doc.properties.size(); i++) - if (_match_string(term, class_doc.properties[i].name)) + if (_match_string(term, class_doc.properties[i].name) || _match_string(term, class_doc.properties[i].getter) || _match_string(term, class_doc.properties[i].setter)) match.properties.push_back(const_cast(&class_doc.properties[i])); if (search_flags & SEARCH_THEME_ITEMS) for (int i = 0; i < class_doc.theme_properties.size(); i++)