mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 04:18:14 +00:00
Add a reset function to the model notifier
This commit is contained in:
parent
2b93504b93
commit
f5030cff06
8 changed files with 67 additions and 4 deletions
|
|
@ -454,6 +454,10 @@ inline Value::Value(const std::shared_ptr<slint::Model<Value>> &model)
|
|||
{
|
||||
cbindgen_private::slint_interpreter_model_notify_row_removed(¬ify, index, count);
|
||||
}
|
||||
void reset() override
|
||||
{
|
||||
cbindgen_private::slint_interpreter_model_notify_reset(¬ify);
|
||||
}
|
||||
};
|
||||
|
||||
auto wrapper = std::make_shared<ModelWrapper>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue