-
Notifications
You must be signed in to change notification settings - Fork 82
Add shorthand for &self in RustQt blocks where the type can be inferred #1249
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
base: main
Are you sure you want to change the base?
Add shorthand for &self in RustQt blocks where the type can be inferred #1249
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1249 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 73 74 +1
Lines 12634 12784 +150
==========================================
+ Hits 12634 12784 +150 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
32371fd
to
e457080
Compare
b97d362
to
8d63f02
Compare
Tried to implement in the qml_features example and there is a cxx error about there being multiple types in the block, even though there is only one qobject in the example, which may be because it adds the QObject import? |
84e9300
to
c05d75d
Compare
128b0f4
to
698c4d7
Compare
…here the type can be inferred - If exactly one QObject is present in a block with a method, it will infer `Self` to represent that qobject - Updates one of the examples to test this out
- QObjects, and invokables are now 2D Vecs, kept in their original block - Adds some helper methods for iterating like they are still flat
4d625b2
to
85d8ee3
Compare
- Add function call to cxx-qt-build and cxx-qt-macro - Inlining now happens after parsing and before structuring
85d8ee3
to
edc96d6
Compare
Allows
Pin<&mut Self>
and&self
inside the bridge, as shorthand.&self
in bridge #1245