diff options
author | Matias Linares <matias@deprecated.org> | 2024-10-21 09:57:10 -0300 |
---|---|---|
committer | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-10-29 18:11:18 -0300 |
commit | a88655cd202dc43a64a7107f6f533bd386079386 (patch) | |
tree | ae6038d67657aa5bf1c18f2e2d1e6dc0bb1558ac /kodereviewer/models/file.py | |
parent | d349e5014fc60a8ae140a56c457c3f3258959582 (diff) | |
download | kodereviewer-a88655cd202dc43a64a7107f6f533bd386079386.tar.gz |
Add reviews view :D
Diffstat (limited to 'kodereviewer/models/file.py')
-rw-r--r-- | kodereviewer/models/file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kodereviewer/models/file.py b/kodereviewer/models/file.py index 43fcbe4..c8e4da6 100644 --- a/kodereviewer/models/file.py +++ b/kodereviewer/models/file.py @@ -174,7 +174,7 @@ class TreeFileModel(QAbstractItemModel): def columnCount(self, parent: QModelIndex = QModelIndex()) -> int: return 1 - def data(self, index: QModelIndex, role: int) -> Any: + def data(self, index: QModelIndex | QPersistentModelIndex, role: int = Qt.ItemDataRole.DisplayRole) -> Any: if not index.isValid(): return '' item: FileItem = index.internalPointer() |