Switch data tree to new model structure

This commit is contained in:
Veronica Berglyd Olsen
2024-11-17 23:24:49 +01:00
parent 7991b9b27c
commit 4f8e898440
2 changed files with 126 additions and 137 deletions
+8
View File
@@ -67,10 +67,18 @@ class ProjectNode:
self.refresh()
return
##
# Properties
##
@property
def item(self) -> NWItem:
return self._item
@property
def children(self) -> list[ProjectNode]:
return self._children
def refresh(self) -> None:
cache: dict[int, str | QIcon | Qt.AlignmentFlag] = {}