summaryrefslogtreecommitdiff
path: root/kodereviewer/models/file.py
diff options
context:
space:
mode:
authorMatias Linares <matias@deprecated.org>2024-10-21 09:57:10 -0300
committerMatias Linares <matias.linares@comprandoengrupo.net>2024-10-29 18:11:18 -0300
commita88655cd202dc43a64a7107f6f533bd386079386 (patch)
treeae6038d67657aa5bf1c18f2e2d1e6dc0bb1558ac /kodereviewer/models/file.py
parentd349e5014fc60a8ae140a56c457c3f3258959582 (diff)
downloadkodereviewer-a88655cd202dc43a64a7107f6f533bd386079386.tar.gz
Add reviews view :D
Diffstat (limited to 'kodereviewer/models/file.py')
-rw-r--r--kodereviewer/models/file.py2
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()