Merge new and old project tree

This commit is contained in:
Veronica Berglyd Olsen
2024-11-17 22:07:37 +01:00
parent 27b3dde6f6
commit ef42e1956c
2 changed files with 777 additions and 804 deletions
+10 -1
View File
@@ -166,7 +166,7 @@ class ProjectModel(QAbstractItemModel):
return self._root
##
# Model Access
# Model Interface
##
def rowCount(self, index: QModelIndex) -> int:
@@ -211,6 +211,15 @@ class ProjectModel(QAbstractItemModel):
# item.addChild(node)
# return
##
# Data Access
##
def node(self, index: QModelIndex) -> ProjectNode | None:
if index.isValid():
return index.internalPointer()
return None
##
# Methods
##
File diff suppressed because it is too large Load Diff