summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-20 17:11:17 +0200
committerGitHub <noreply@github.com>2019-08-20 17:11:17 +0200
commitbb5bf8ef49fd9d4e0580998dd03644d99bd3bc1a (patch)
treef07e29d44267823df6ebaadcf24e0d5cb5d84744
parentf21371d7f4df40c9aeb39fc11ebf81a362048fad (diff)
parente068fbbb2064d7dc407bbc37bbfbadb898fb1b8c (diff)
Merge pull request #31498 from KoBeWi/setter_getter_radar
Include setters and getters in help search
-rw-r--r--editor/editor_help_search.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp
index fbfc999dbf..af79c21f85 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<DocData::ConstantDoc *>(&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<DocData::PropertyDoc *>(&class_doc.properties[i]));
if (search_flags & SEARCH_THEME_ITEMS)
for (int i = 0; i < class_doc.theme_properties.size(); i++)