Merge pull request #45994 from Jummit/expose-edit-selected

Expose edit_selected in Tree
This commit is contained in:
Rémi Verschelde 2021-02-22 16:29:03 +01:00 committed by GitHub
commit cb29e6c49c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -57,6 +57,13 @@
The new item will be the [code]idx[/code]th child of parent, or it will be the last child if there are not enough siblings.
</description>
</method>
<method name="edit_selected">
<return type="bool">
</return>
<description>
Edits the selected tree item as if it was clicked. The item must be set editable with [method TreeItem.set_editable]. Returns [code]true[/code] if the item could be edited. Fails if no item is selected.
</description>
</method>
<method name="ensure_cursor_is_visible">
<return type="void">
</return>