slint/internal/interpreter
Olivier Goffart f3bcf7ab56
interpreter: Make the From<ModelRc> for Value implement set_row_data (#8575)
When converting a ModelRc<T> to a Value, the resulting model did not
implement set_row_data and therefore would not allow changing the model
from the code.
By adding a `TryFrom` bound, we can make sure set_row_data is
implemented.

This is technically a breaking change to add this bound, but most type
that implement From for value also implement TryFrom<Value>

These conversion function were added in
20443ec0df for Slint 1.9

ChangeLog: interpreter: The `From<ModelRc> for slint_interpreter::Value` now gives a model that supports `set_row_data`.
2025-06-02 16:02:16 +02:00
..
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
api.rs interpreter: Make the From<ModelRc> for Value implement set_row_data (#8575) 2025-06-02 16:02:16 +02:00
Cargo.toml FemtoVG: Add support for WGPU based rendering (#8268) 2025-04-25 14:37:32 +02:00
dynamic_item_tree.rs Transition: Introduce in-out to allow writing symmetry animation (#8509) 2025-05-26 09:17:22 +02:00
dynamic_type.rs Janitor: Silence warning with nightly rust 2025-04-29 10:44:10 +02:00
eval.rs Add FocusEventReason to FocusEvent and add a select all on keyboard focus for TextInput (#8523) 2025-05-27 07:56:13 +02:00
eval_layout.rs Support default-font-* properties in Live-Preview 2025-04-24 09:18:45 +02:00
ffi.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
global_component.rs Fix all format arg inlining 2025-02-06 10:16:20 +01:00
highlight.rs Preview: filter invisible items out from the selection popup 2025-02-10 13:38:43 +01:00
json.rs compiler: Fix identifier normalization function 2025-05-21 12:21:20 +02:00
lib.rs Don't enable image-default-formats by default, remove compat-1-10 feature 2025-02-22 11:15:18 +01:00
migration.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
tests.rs API review of the slint interpreter Compiler api 2024-07-05 17:20:08 +02:00
value_model.rs interpreter: Make the From<ModelRc> for Value implement set_row_data (#8575) 2025-06-02 16:02:16 +02:00