mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
Python: Add missing Model[T].set_row_data function
This commit is contained in:
parent
3358bc24e3
commit
f0f2880430
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ class Model[T](native.PyModelBase, Iterable[T]):
|
|||
def notify_row_added(self, row: int, count: int) -> None:
|
||||
super().notify_row_added(row, count)
|
||||
|
||||
def set_row_data(self, row: int, value: T) -> None:
|
||||
super().set_row_data(row, value)
|
||||
|
||||
def row_data(self, row: int) -> typing.Optional[T]:
|
||||
return cast(T, super().row_data(row))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue