Change return value of Tree.create_item() from Object to TreeItem

This commit is contained in:
Kelly Thomas 2018-09-03 03:33:52 +08:00
parent 457108924f
commit 3dc0d17c6f
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
</description>
</method>
<method name="create_item">
<return type="Object">
<return type="TreeItem">
</return>
<argument index="0" name="parent" type="Object" default="null">
</argument>

View File

@ -516,7 +516,7 @@ protected:
static void _bind_methods();
//bind helpers
Object *_create_item(Object *p_parent, int p_idx = -1) {
TreeItem *_create_item(Object *p_parent, int p_idx = -1) {
return create_item(Object::cast_to<TreeItem>(p_parent), p_idx);
}