mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
no need for InferredGenericType!
This commit is contained in:
parent
ab665ba7b6
commit
cc4105e274
4 changed files with 2 additions and 9 deletions
|
@ -1628,7 +1628,7 @@ fn compile_expression(
|
|||
"[](const sixtyfps::Image &img) { return img.size(); }".into()
|
||||
}
|
||||
BuiltinFunction::ArrayLength => {
|
||||
"[](const sixtyfps::Model &model) { return (int) model.row_count(); }".into()
|
||||
"[](const auto &model) { return (int) model.row_count(); }".into()
|
||||
}
|
||||
BuiltinFunction::Rgb => {
|
||||
"[](int r, int g, int b, float a) {{ return sixtyfps::Color::from_argb_uint8(std::clamp(a * 255., 0., 255.), std::clamp(r, 0, 255), std::clamp(g, 0, 255), std::clamp(b, 0, 255)); }}".into()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue