Skip to content
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

Add HashSet of flags to ParsedQPoperty for optional getters and setters #994

Merged
merged 19 commits into from
Jul 22, 2024

Conversation

BenFordTytherington
Copy link
Collaborator

Add option to specify whether QProperties generate getters or setters

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.

Overall looking good!
Mostly nitpicks left I think.

We can then follow up on this with the proper naming lookup in a second PR.

crates/cxx-qt-gen/src/parser/property.rs Outdated Show resolved Hide resolved
crates/cxx-qt-gen/src/parser/property.rs Outdated Show resolved Hide resolved
crates/cxx-qt-gen/src/parser/property.rs Outdated Show resolved Hide resolved
crates/cxx-qt-gen/src/generator/naming/property.rs Outdated Show resolved Hide resolved
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.

A decent start on the documentation, but it should to be phrased a bit more user-friendly.
The people reading this documentation are doing so because they don't know how certain things work or should be used.
So we need to try and describe features in a way that requires as little prerequisite knowledge as possible.

book/src/bridge/extern_rustqt.md Outdated Show resolved Hide resolved
book/src/bridge/extern_rustqt.md Outdated Show resolved Hide resolved
book/src/bridge/extern_rustqt.md Outdated Show resolved Hide resolved
crates/cxx-qt-gen/src/parser/property.rs Outdated Show resolved Hide resolved
crates/cxx-qt-gen/src/parser/property.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@BenFordTytherington BenFordTytherington marked this pull request as ready for review July 22, 2024 12:29
@LeonMatthesKDAB LeonMatthesKDAB enabled auto-merge (squash) July 22, 2024 13:14
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.

We've planned to implement this feature for a very long time.

Thanks to @BenFordTytherington for finally getting it done 🥳

@LeonMatthesKDAB LeonMatthesKDAB merged commit 0ed19c6 into KDAB:main Jul 22, 2024
10 checks passed
@BenFordTytherington BenFordTytherington deleted the feature-optional-rw branch July 22, 2024 14:46
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.

3 participants