Merge pull request #21705 from KellyThomas/tree-create-item

Change return value of Tree.create_item() from Object to TreeItem
This commit is contained in:
Rémi Verschelde 2018-09-12 10:57:50 +02:00 committed by GitHub
commit ead2c2eef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}