mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 11:32:13 +00:00
Fix wrong displayed category name in EditorHelpSearch
This commit is contained in:
parent
2be730a05b
commit
aa4f7bc2e3
@ -530,7 +530,7 @@ bool EditorHelpSearch::Runner::_phase_fill_member_items_init() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
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) {
|
||||||
const String item_meta = "class_" + p_metatype + ":" + p_class;
|
const String item_meta = "class_" + p_metatype + ":" + p_class;
|
||||||
|
|
||||||
TreeItem *item = nullptr;
|
TreeItem *item = nullptr;
|
||||||
@ -620,7 +620,7 @@ bool EditorHelpSearch::Runner::_phase_fill_member_items() {
|
|||||||
if ((search_flags & SEARCH_PROPERTIES) && !class_doc->properties.is_empty()) {
|
if ((search_flags & SEARCH_PROPERTIES) && !class_doc->properties.is_empty()) {
|
||||||
TreeItem *parent_item = item;
|
TreeItem *parent_item = item;
|
||||||
if (search_all) {
|
if (search_all) {
|
||||||
parent_item = _create_category_item(parent_item, class_doc->name, SNAME("MemberProperty"), TTRC("Prtoperties"), "propertiess");
|
parent_item = _create_category_item(parent_item, class_doc->name, SNAME("MemberProperty"), TTRC("Properties"), "properties");
|
||||||
}
|
}
|
||||||
for (const DocData::PropertyDoc &property_doc : class_doc->properties) {
|
for (const DocData::PropertyDoc &property_doc : class_doc->properties) {
|
||||||
_create_property_item(parent_item, class_doc, &property_doc);
|
_create_property_item(parent_item, class_doc, &property_doc);
|
||||||
|
@ -198,7 +198,7 @@ class EditorHelpSearch::Runner : public RefCounted {
|
|||||||
TreeItem *_create_class_hierarchy(const ClassMatch &p_match);
|
TreeItem *_create_class_hierarchy(const ClassMatch &p_match);
|
||||||
TreeItem *_create_class_hierarchy(const DocData::ClassDoc *p_class_doc, const String &p_matching_keyword, bool p_gray);
|
TreeItem *_create_class_hierarchy(const DocData::ClassDoc *p_class_doc, const String &p_matching_keyword, bool p_gray);
|
||||||
TreeItem *_create_class_item(TreeItem *p_parent, const DocData::ClassDoc *p_doc, bool p_gray, const String &p_matching_keyword);
|
TreeItem *_create_class_item(TreeItem *p_parent, const DocData::ClassDoc *p_doc, bool p_gray, const String &p_matching_keyword);
|
||||||
TreeItem *_create_category_item(TreeItem *p_parent, const String &p_class, const StringName &p_icon, const String &p_metatype, const String &p_type);
|
TreeItem *_create_category_item(TreeItem *p_parent, const String &p_class, const StringName &p_icon, const String &p_text, const String &p_metatype);
|
||||||
TreeItem *_create_method_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);
|
TreeItem *_create_method_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);
|
||||||
TreeItem *_create_constructor_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);
|
TreeItem *_create_constructor_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);
|
||||||
TreeItem *_create_operator_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);
|
TreeItem *_create_operator_item(TreeItem *p_parent, const DocData::ClassDoc *p_class_doc, const MemberMatch<DocData::MethodDoc> &p_match);
|
||||||
|
Loading…
Reference in New Issue
Block a user