Skip to content

Add support for connecting signals with QPrivateSignal#193

Merged
danvratil merged 1 commit intomainfrom
qprivatesignal-support
Oct 21, 2023
Merged

Add support for connecting signals with QPrivateSignal#193
danvratil merged 1 commit intomainfrom
qprivatesignal-support

Conversation

@danvratil
Copy link
Collaborator

Initial commit that adds support for co_awaiting signals with QPrivateSignal in their signature ("private signals"). This basically requries detecting the QPrivateSignal type in the arguments and omitting it when preparing the holder for signal parameters and when storing the signal parameters into the result holder.

Currently the QPrivateSignal detection is using a bit whacky hack, but I couldn't figure out anything better due to the QPrivateSignal always being a private struct in the sender class, so we cannot access it from QCoro to do e.g. std::same_as check.

@danvratil danvratil force-pushed the qprivatesignal-support branch from f5481d3 to f3335f8 Compare October 21, 2023 21:35
@danvratil danvratil marked this pull request as ready for review October 21, 2023 21:38
@danvratil danvratil force-pushed the qprivatesignal-support branch 2 times, most recently from 774cb62 to 74b69a8 Compare October 21, 2023 21:44
Initial commit that adds support for co_awaiting signals with
QPrivateSignal in their signature ("private signals"). This
basically requries detecting the QPrivateSignal type in the
arguments and omitting it when preparing the holder for
signal parameters and when storing the signal parameters
into the result holder.

Currently the QPrivateSignal detection is using a bit whacky
hack, but I couldn't figure out anything better due to the
QPrivateSignal always being a private struct in the sender
class, so we cannot access it from QCoro to do e.g. std::same_as
check.
@danvratil danvratil force-pushed the qprivatesignal-support branch from 74b69a8 to 6e2aba2 Compare October 21, 2023 21:45
@danvratil danvratil merged commit dde8ffc into main Oct 21, 2023
@danvratil danvratil deleted the qprivatesignal-support branch October 21, 2023 21:59
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.

1 participant