Merge new and old project tree
This commit is contained in:
2 files changed
+777
-804
No files matched your search
@@ -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
|
||||
##
|
||||
|
||||
+767
-803
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user