From a88655cd202dc43a64a7107f6f533bd386079386 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Mon, 21 Oct 2024 09:57:10 -0300 Subject: Add reviews view :D --- kodereviewer/models/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kodereviewer/models/file.py') 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() -- cgit v1.2.3-70-g09d2