Skip to content

cxx-qt-gen: add support for multiple QObjects in writer/cpp #216

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

Merged

Conversation

ahayzen-kdab
Copy link
Collaborator

No description provided.

@ahayzen-kdab ahayzen-kdab force-pushed the generate-phase-multiple-qobjects branch from 14828a8 to 4843bb2 Compare August 16, 2022 11:02
@ahayzen-kdab
Copy link
Collaborator Author

This assumes that one module block will result in one C++ header file (which i believe will always be true?).

Our other debates are whether the module or file name should be used for the resultant files, so then that would determine if multiple module blocks result in multiple C++ header files or a single header file. However for now we only support one module per file anyway (and also one QObject per module, but that may change sooner)

@ahayzen-kdab
Copy link
Collaborator Author

For now this can be draft as the Rust side needs figuring out in the CXX bridge to avoid collisions.

@ahayzen-kdab ahayzen-kdab marked this pull request as draft August 16, 2022 11:08
@ahayzen-kdab ahayzen-kdab changed the title cxx-qt-gen: add support for multiple QObjects in writer/cpp WIP: cxx-qt-gen: add support for multiple QObjects in writer/cpp Aug 16, 2022
@ahayzen-kdab
Copy link
Collaborator Author

See in #157 under "Support multiple QObject's being defined in one block" why the Rust side of this is blocked.

@ahayzen-kdab ahayzen-kdab force-pushed the generate-phase-multiple-qobjects branch from 4843bb2 to 96e0770 Compare September 2, 2022 04:28
@ahayzen-kdab ahayzen-kdab force-pushed the generate-phase-multiple-qobjects branch 2 times, most recently from 804b1e3 to 8fe9276 Compare September 2, 2022 09:46
@ahayzen-kdab ahayzen-kdab force-pushed the generate-phase-multiple-qobjects branch from 8fe9276 to f220705 Compare September 2, 2022 10:11
@ahayzen-kdab ahayzen-kdab changed the title WIP: cxx-qt-gen: add support for multiple QObjects in writer/cpp cxx-qt-gen: add support for multiple QObjects in writer/cpp Sep 2, 2022
@ahayzen-kdab ahayzen-kdab marked this pull request as ready for review September 2, 2022 10:11
@LeonMatthesKDAB LeonMatthesKDAB enabled auto-merge (squash) September 2, 2022 11:51
Copy link
Collaborator

@LeonMatthesKDAB LeonMatthesKDAB left a comment

Choose a reason for hiding this comment

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

LGTM

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