mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
API: Change WindowRc::free_graphics_resources and init_items on C++
Use the ItemArray in both cases.
This commit is contained in:
parent
1fd14272cf
commit
5d3f296af9
2 changed files with 8 additions and 8 deletions
|
@ -1022,7 +1022,7 @@ fn generate_item_tree(
|
|||
}
|
||||
|
||||
create_code.extend([
|
||||
format!("{}->m_window.window_handle().init_items(self, item_tree());", root_access),
|
||||
format!("{}->m_window.window_handle().init_items(self, self->item_array());", root_access),
|
||||
format!("self->init({}, self->self_weak, 0, 1 {});", root_access, init_parent_parameters),
|
||||
format!("return slint::ComponentHandle<{0}>{{ self_rc }};", target_struct.name),
|
||||
]);
|
||||
|
@ -1045,7 +1045,7 @@ fn generate_item_tree(
|
|||
let mut destructor = vec!["auto self = this;".to_owned()];
|
||||
|
||||
destructor.push(format!(
|
||||
"{}->m_window.window_handle().free_graphics_resources(self, item_tree());",
|
||||
"{}->m_window.window_handle().free_graphics_resources(self, item_array());",
|
||||
root_access
|
||||
));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue