forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
live-preview: Recognize GridLayouts as layouts and find layouts in co…
…mponents ... when deciding whether or not we are dropping into a layout or not. Components that take @children (like a GroupBox) were misrecognized before. This is a bit tricky as the optimized Elements do not allow to find out whether something had a child insertion point. So I need to convert over to the unoptimized Element found in my `document_cache`. Unfortunately there the lowering pass for the layouts has not been done yet, so my "normal" approach to figuring out whether something is a layout or not does not work anymore:-/ I ended up duplicating the logic of the layout lowering step: Match specific type names for Builtin types. That's not nice and should be cleaned up at some point.
- Loading branch information
Showing
2 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters