Implement automatic implementations of up and downcasting#1159
Implement automatic implementations of up and downcasting#1159ahayzen-kdab merged 6 commits intoKDAB:mainfrom
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
ahayzen-kdab
left a comment
There was a problem hiding this comment.
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
ahayzen-kdab
left a comment
There was a problem hiding this comment.
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
LeonMatthesKDAB
left a comment
There was a problem hiding this comment.
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
ahayzen-kdab
left a comment
There was a problem hiding this comment.
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.