Skip to content

Redirected click to use hook#210

Open
th-jyu wants to merge 3 commits intoshotgunsoftware:masterfrom
Treehouse-Digital:hookable-item-clicks
Open

Redirected click to use hook#210
th-jyu wants to merge 3 commits intoshotgunsoftware:masterfrom
Treehouse-Digital:hookable-item-clicks

Conversation

@th-jyu
Copy link
Copy Markdown
Contributor

@th-jyu th-jyu commented Feb 5, 2026

Opens up option for developers to add their own behaviours when their artists click on the items in the publish tree widget. For example, extending to:

  • Make double clicks select all tasks from the same plugin name
  • Alt-click toggles check state

These are possible since the new methods (explicitly) pass on:

  • TreeNode* clicked, as well as it's widget
  • Any api.Publish* instance associated with it
  • The QMouseButtons and QKeyboardModifiers used during the click

Added

  • New tree_node_clicked hook with single() and double() methods

Changed

  • Redirects calls to double_clicked() to new tree_node_clicked hook's double() method

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 40.30%. Comparing base (0e27293) to head (1bdf924).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #210      +/-   ##
==========================================
+ Coverage   40.18%   40.30%   +0.12%     
==========================================
  Files          61       61              
  Lines        5027     5034       +7     
==========================================
+ Hits         2020     2029       +9     
+ Misses       3007     3005       -2     
Flag Coverage Δ
Linux 40.30% <100.00%> (+0.12%) ⬆️
Python-3.10 40.30% <100.00%> (+0.12%) ⬆️
Python-3.11 40.30% <100.00%> (+0.12%) ⬆️
Python-3.13 40.30% <100.00%> (+0.12%) ⬆️
Python-3.9 40.31% <100.00%> (+0.12%) ⬆️
Windows 40.30% <100.00%> (+0.12%) ⬆️
macOS 40.30% <100.00%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@th-jyu th-jyu force-pushed the hookable-item-clicks branch 2 times, most recently from c96d64c to 46aa082 Compare February 9, 2026 19:52
@th-jyu th-jyu force-pushed the hookable-item-clicks branch from 46aa082 to cbea864 Compare April 8, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant