internal cleanup: Rename Property::set_dirty() to mark_dirty()

This commit is contained in:
Simon Hausmann 2021-10-20 15:07:13 +02:00 committed by Simon Hausmann
parent a494eafa9c
commit d420d5efd7
4 changed files with 7 additions and 7 deletions

View file

@ -470,13 +470,13 @@ protected:
/// Notify the views that rows were added
void row_added(int index, int count)
{
model_dirty_property.set_dirty();
model_dirty_property.mark_dirty();
for_each_peers([=](auto peer) { peer->row_added(index, count); });
}
/// Notify the views that rows were removed
void row_removed(int index, int count)
{
model_dirty_property.set_dirty();
model_dirty_property.mark_dirty();
for_each_peers([=](auto peer) { peer->row_removed(index, count); });
}

View file

@ -142,7 +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); }
void mark_dirty() const { cbindgen_private::sixtyfps_property_mark_dirty(&inner); }
static void link_two_way(const Property<T> *p1, const Property<T> *p2)
{