Merge new and old project tree
This commit is contained in:
@@ -166,7 +166,7 @@ class ProjectModel(QAbstractItemModel):
|
|||||||
return self._root
|
return self._root
|
||||||
|
|
||||||
##
|
##
|
||||||
# Model Access
|
# Model Interface
|
||||||
##
|
##
|
||||||
|
|
||||||
def rowCount(self, index: QModelIndex) -> int:
|
def rowCount(self, index: QModelIndex) -> int:
|
||||||
@@ -211,6 +211,15 @@ class ProjectModel(QAbstractItemModel):
|
|||||||
# item.addChild(node)
|
# item.addChild(node)
|
||||||
# return
|
# return
|
||||||
|
|
||||||
|
##
|
||||||
|
# Data Access
|
||||||
|
##
|
||||||
|
|
||||||
|
def node(self, index: QModelIndex) -> ProjectNode | None:
|
||||||
|
if index.isValid():
|
||||||
|
return index.internalPointer()
|
||||||
|
return None
|
||||||
|
|
||||||
##
|
##
|
||||||
# Methods
|
# Methods
|
||||||
##
|
##
|
||||||
|
|||||||
+767
-803
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user