mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 12:54:45 +00:00
Fix C++ compilation with the new item visitor
This commit is contained in:
parent
66dc643bf9
commit
e7644eba94
6 changed files with 37 additions and 25 deletions
|
@ -19,7 +19,8 @@ extern const internal::ItemVTable ImageVTable;
|
|||
// Bring opaque structure in scope
|
||||
using internal::ComponentVTable;
|
||||
using internal::ItemTreeNode;
|
||||
using ComponentRef = VRefMut<ComponentVTable>;
|
||||
using ComponentRef = VRef<ComponentVTable>;
|
||||
using ItemVisitorRefMut = VRefMut<internal::ItemVisitorVTable>;
|
||||
|
||||
template<typename Component>
|
||||
void run(Component *c)
|
||||
|
@ -51,6 +52,9 @@ constexpr inline ItemTreeNode make_item_node(std::intptr_t offset,
|
|||
child_index } } };
|
||||
}
|
||||
|
||||
// FIXME: this should have a better name
|
||||
using internal::visit_item_tree;
|
||||
|
||||
// layouts:
|
||||
using internal::Slice;
|
||||
using internal::solve_grid_layout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue