revert change to rowCount and Data methods

This commit is contained in:
Iuri Matias 2020-05-22 19:00:21 -04:00
parent 9947bae85a
commit ac5c6389d3
1 changed files with 2 additions and 2 deletions

View File

@ -49,10 +49,10 @@ QtObject:
proc getDefaultAccount*(self: WalletView): string {.slot.} =
return self.defaultAccount
proc rowCount(self: WalletView, index: QModelIndex = nil): int =
method rowCount(self: WalletView, index: QModelIndex = nil): int =
return self.assets.len
proc data(self: WalletView, index: QModelIndex, role: int): QVariant =
method data(self: WalletView, index: QModelIndex, role: int): QVariant =
if not index.isValid:
return
if index.row < 0 or index.row >= self.assets.len: