-
Notifications
You must be signed in to change notification settings - Fork 80
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
Implement automatic implementations of up and downcasting #1159
Implement automatic implementations of up and downcasting #1159
Conversation
fb6ec2a
to
afe4181
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1159 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 73 73
Lines 12458 12527 +69
=========================================
+ Hits 12458 12527 +69 ☔ View full report in Codecov by Sentry. |
f3b9070
to
87b9d5a
Compare
6b8d457
to
2786e90
Compare
6578b6b
to
c60cdfe
Compare
ba5808c
to
a08b918
Compare
13da0be
to
9ea2336
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, would be nice in a future PR to add support for #[base = T]
to extern "C++Qt" types too so we can do the same tricks of up/down casting there
8979b03
to
55eb426
Compare
55eb426
to
691c7a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :-) @LeonMatthesKDAB any comments ? Ben is going to look at further changes like adding more docs to the book / adding support for base to extern C++Qt so that casing can be done on those types.
But i think this is probably far enough to land this part already?
5afc056
to
f860cea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only some nitpicks left from my side.
Feel free to merge after these and the comments from @ahayzen-kdab are fixed.
Another really good step forward! 🥳
- Any bridges with qobjects that have no custom base class will get an upcasting implemention - Adds a new include with the necessary template function for calling static_cast
71ce3ca
to
0d46b6e
Compare
0d46b6e
to
db8d215
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, support for C++Qt will be in another change and extending the QObject type etc. @LeonMatthesKDAB any objections ?
(Leon says it's good too) |
No description provided.