mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Add support for tracking the length of a model in C++
Similar to the parent commit, the model tracks changes to the rows and marks an internal property dirty. Since we have a base class this is a little less intrusive. cc #98
This commit is contained in:
parent
63bf1af093
commit
7d12fd7b4e
6 changed files with 49 additions and 2 deletions
|
@ -142,6 +142,7 @@ struct Property
|
|||
}
|
||||
|
||||
bool is_dirty() const { return cbindgen_private::sixtyfps_property_is_dirty(&inner); }
|
||||
void set_dirty() const { cbindgen_private::sixtyfps_property_set_dirty(&inner); }
|
||||
|
||||
static void link_two_way(const Property<T> *p1, const Property<T> *p2)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue