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: Refactor Api between backend and UI #7686

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

hunger
Copy link
Member

@hunger hunger commented Feb 20, 2025

No description provided.

Only push basic information over the boundary in a model.
The values themselves now need to be queried via `Api`.

Pros:
 * Slint tracks the properties automatically, no more
   Property change tracker!

Cons:
 * Live preview is less useful now as we can not yet provide
   function call results via ourr data API.
@hunger
Copy link
Member Author

hunger commented Feb 20, 2025

@ogoffart: That's the approach you had suggested...

I only have very basic data in PreviewData now and query the actual property value via a callback in Api.

UI still needs a lot of polish, but the backend is in an even better state now that it was before ;-)

Copy link
Member

@ogoffart ogoffart left a comment

Choose a reason for hiding this comment

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

Nice simplifications.

@hunger hunger merged commit f96ce07 into slint-ui:master Feb 21, 2025
39 checks passed
@hunger hunger deleted the tobias/push-nomvwnkkumwo branch February 21, 2025 09:50
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