Switch data tree to new model structure
This commit is contained in:
@@ -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] = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user