fix: restore coin control Qt build#46
Conversation
QTreeWidget::indexFromItem is protected, so the free helper failed to compile under Qt 5. Move the helper into CoinControlTreeWidget so it inherits access; behavior (column, validity, and check-indicator hit test) is unchanged.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR refactors a checkbox hit-test helper from a static function to a private member function of ChangesCheckbox hit-test helper refactoring
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
✅ Review complete (commit fcb84c3) |
thepastaclaw
left a comment
There was a problem hiding this comment.
Code Review
Small, well-scoped Qt build fix promoting the static isCheckboxClick helper into a private const member of CoinControlTreeWidget so the call to the protected QTreeWidget::indexFromItem compiles. The hit-test logic and call-site behavior are unchanged; only the receiver changes from an explicit tree parameter to this. Both independent agents found no issues; verification against the diff confirms a faithful mechanical move with no correctness, security, or consensus implications.
Posted as a COMMENT review because GitHub does not allow PastaClaw to approve their own PR.
|
CI follow-up on the current red |
Restore coin-control Qt build
Summary
CoinControlTreeWidget.access to protected
QTreeWidget::indexFromItem.fix is already on
develop.Validation
protected
QTreeWidget::indexFromItemaccess from a free helper.-fsyntax-onlycompile ofsrc/qt/coincontroltreewidget.cppafter the fix with local Qt5 headers:passed.
code-reviewgate for6b5a5553bf6fb3e60acb734ec86d3c2def06166c..fcb84c34345c76c1b6325f0e3bf3e13a69a03b23:ship.Summary by CodeRabbit