Skip to content

Conversation

BenFordTytherington
Copy link
Collaborator

Fix for #578

Copy link

codecov bot commented Jul 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c6710b7) to head (c25611d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1317   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           75        75           
  Lines        12772     12768    -4     
=========================================
- Hits         12772     12768    -4     

☔ 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.

Comment on lines +88 to +90
// // CODECOV_EXCLUDE_START
// unreachable!("Signals cannot be immutable right now so this cannot be reached")
// // CODECOV_EXCLUDE_STOP
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove the commented code :-)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guess we need to ensure there is a unit test that reaches this for coverage though

"signals must be mutable, use Pin<&mut T> instead of T for the self type",
));
}
// TODO: add proper checks
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, as @LeonMatthesKDAB suggested, we probably only want const signals support inside unsafe extern "C++Qt" blocks not unsafe extern "RustQt", so we need to determine that info somehow here 🤔

Comment on lines +29 to +30
#[qsignal]
fn const_ready(&self);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would need to move up into the C++Qt block to be on the QTimer

/// const signal that is emitted when trigger is fired
#[qsignal]
#[rust_name = "triggered_const_signal"]
fn triggeredConstSignal(&self);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

2 participants