mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Refactoring: split ElementType away from the types used as property type
These are two different concept, and it is confusing to keep them in the same enum We want to support component without any base element, and Void is already used for global component, so do this refactoring before
This commit is contained in:
parent
8fa6bbb244
commit
28ae8f7bc4
51 changed files with 588 additions and 554 deletions
|
@ -182,9 +182,6 @@ impl Expression {
|
|||
pub fn default_value_for_type(ty: &Type) -> Option<Self> {
|
||||
Some(match ty {
|
||||
Type::Invalid
|
||||
| Type::Component(_)
|
||||
| Type::Builtin(_)
|
||||
| Type::Native(_)
|
||||
| Type::Callback { .. }
|
||||
| Type::Function { .. }
|
||||
| Type::Void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue