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

live-preview: Make property widgets use less information #7554

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

hunger
Copy link
Member

@hunger hunger commented Feb 6, 2025

Make the property widgets work with less information avaiable to them. I hope I can reuse them for runtime widget state as well that way.

Unexport the individual widgets and wrap them into a PropertyValueWidget that switches between them as needed -- and fills in the extra information needed to keep the existing functionality in place.

This makes the PropertyView so much cleaner ;-)

@hunger hunger requested a review from szecket February 6, 2025 15:02
Make the property widgets work with less information avaiable to
them. I hope I can reuse them for runtime widget state as well that
way.

Unexport the individual widgets and wrap them into a `PropertyValueWidget`
that switches between them as needed -- and fills in the extra information
needed to keep the existing functionality in place.

This makes the PropertyView so much cleaner ;-)
@hunger hunger force-pushed the tobias/push-opnkoqttmznw branch from e03eb14 to 7ea00e9 Compare February 6, 2025 15:08
Copy link
Member

@szecket szecket left a comment

Choose a reason for hiding this comment

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

everything seems to be working as expected and I see no thing outstanding in the code implementation

@hunger hunger merged commit 4b8287b into slint-ui:master Feb 6, 2025
37 checks passed
@hunger hunger deleted the tobias/push-opnkoqttmznw branch February 6, 2025 15: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.

2 participants