mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Simplify signature of Component::run
We don't need to pass the root item anymore since ComponentVTable has now get_item_ref.
This commit is contained in:
parent
94ed0ae1d1
commit
02904c4014
7 changed files with 17 additions and 16 deletions
|
@ -84,7 +84,7 @@ struct ComponentWindow
|
|||
void run(const Component *c) const
|
||||
{
|
||||
sixtyfps_component_window_run(
|
||||
&inner, vtable::VRefMut<ComponentVTable> { &Component::component_type, const_cast<Component *>(c) }, c->root_item());
|
||||
&inner, vtable::VRefMut<ComponentVTable> { &Component::component_type, const_cast<Component *>(c) });
|
||||
}
|
||||
|
||||
float scale_factor() const { return sixtyfps_component_window_get_scale_factor(&inner); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue