Add a reset function to the model notifier

This commit is contained in:
Olivier Goffart 2022-04-14 14:06:34 +02:00 committed by GitHub
parent 2b93504b93
commit f5030cff06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 67 additions and 4 deletions

View file

@ -454,6 +454,10 @@ inline Value::Value(const std::shared_ptr<slint::Model<Value>> &model)
{
cbindgen_private::slint_interpreter_model_notify_row_removed(&notify, index, count);
}
void reset() override
{
cbindgen_private::slint_interpreter_model_notify_reset(&notify);
}
};
auto wrapper = std::make_shared<ModelWrapper>();