-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename tree item double-click signal to match the actual behaviour #44185
Rename tree item double-click signal to match the actual behaviour #44185
Conversation
As discussed, |
I've done some digging, Lines 2733 to 2739 in f1cb475
It's emitted when clicking outside of the editable portion of an editable TreeItem . For example, when clicking the icon of an editable TreeItem . The editor SceneTreeDock connects to it, where it's used to change the viewport focus to the selected item (i.e. like using the 'F' hotkey with the mouse in the viewport). Note: If select_mode is Multi , it requires the item to be clicked twice; the same way editing requires a second click.
My suggestion is to rename it
For those interested in the history: It was originally added as part of #5956 to solve #5791 i.e. to trigger the editor to focus on the item that was double-clicked. Note: At the time it differentiated between a fast double click (< 400 ms) and a slow double-click (between 400 and 800 ms). |
8898a22
to
08c7e31
Compare
Updated to only rename |
Superseded by #70290. |
As identified here, currently a
Tree
emits anitem_activated
signal when the item's label is double-clicked, and anitem_double_clicked
signal when the item's icon is double-clicked.This PR renames the
Tree
's item double-click signals to match the events and improves docs:item_double_clicked
->item_icon_double-clicked
Part of #16863.
Bugsquad: updated to reflect current state