mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Make the parent_item function work with repeater component
This commit is contained in:
parent
7de0918f0d
commit
789ac719eb
2 changed files with 24 additions and 7 deletions
|
@ -142,6 +142,7 @@ public:
|
|||
friend bool operator!=(const VRc &a, const VRc &b) {
|
||||
return a.inner != b.inner;
|
||||
}
|
||||
const VTable *vtable() const { return inner->vtable; }
|
||||
};
|
||||
|
||||
template<typename VTable, typename X = Dyn>
|
||||
|
@ -183,6 +184,7 @@ public:
|
|||
friend bool operator!=(const VWeak &a, const VWeak &b) {
|
||||
return a.inner != b.inner;
|
||||
}
|
||||
const VTable *vtable() const { return inner ? inner->vtable : nullptr; }
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue