Skip to content

Commit aa4f7bc

Browse files
committed
Fix wrong displayed category name in EditorHelpSearch
1 parent 2be730a commit aa4f7bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

editor/editor_help_search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ bool EditorHelpSearch::Runner::_phase_fill_member_items_init() {
530530
return true;
531531
}
532532

533-
TreeItem *EditorHelpSearch::Runner::_create_category_item(TreeItem *p_parent, const String &p_class, const StringName &p_icon, const String &p_metatype, const String &p_text) {
533+
TreeItem *EditorHelpSearch::Runner::_create_category_item(TreeItem *p_parent, const String &p_class, const StringName &p_icon, const String &p_text, const String &p_metatype) {
534534
const String item_meta = "class_" + p_metatype + ":" + p_class;
535535

536536
TreeItem *item = nullptr;
@@ -620,7 +620,7 @@ bool EditorHelpSearch::Runner::_phase_fill_member_items() {
620620
if ((search_flags & SEARCH_PROPERTIES) && !class_doc->properties.is_empty()) {
621621
TreeItem *parent_item = item;
622622
if (search_all) {
623-
parent_item = _create_category_item(parent_item, class_doc->name, SNAME("MemberProperty"), TTRC("Prtoperties"), "propertiess");
623+
parent_item = _create_category_item(parent_item, class_doc->name, SNAME("MemberProperty"), TTRC("Properties"), "properties");
624624
}
625625
for (const DocData::PropertyDoc &property_doc : class_doc->properties) {
626626
_create_property_item(parent_item, class_doc, &property_doc);

editor/editor_help_search.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class EditorHelpSearch::Runner : public RefCounted {
198198
TreeItem *_create_class_hierarchy(const ClassMatch &p_match);
199199
TreeItem *_create_class_hierarchy(const DocData::ClassDoc *p_class_doc, const String &p_matching_keyword, bool p_gray);
200200
TreeItem *_create_class_item(TreeItem *p_parent, const DocData::ClassDoc *p_doc, bool p_gray, const String &p_matching_keyword);
201-
TreeItem *_create_category_item(TreeItem *p_parent, const String &p_class, const StringName &p_icon, const String &p_metatype, const String &p_type);
201+
TreeItem *_create_category_item(TreeItem *p_parent, const String &p_class, const StringName &p_icon, const String &p_text, const String &p_metatype);
202202
TreeItem *_create_method_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);
203203
TreeItem *_create_constructor_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);
204204
TreeItem *_create_operator_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);

0 commit comments

Comments
 (0)