Move the item index into a wrapper class and combine the access functions

This commit is contained in:
Veronica Berglyd Olsen
2022-05-29 18:58:32 +02:00
parent 347d34bf83
commit 77e50a6cee
5 changed files with 440 additions and 297 deletions
+1 -3
View File
@@ -251,9 +251,7 @@ class GuiNovelTree(QTreeWidget):
currChapter = None
currScene = None
for tKey, tHandle, sTitle, novIdx in self.theProject.index.novelStructure(
skipExcluded=True
):
for tKey, tHandle, sTitle, novIdx in self.theProject.index.novelStructure(skipExcl=True):
tItem = self._createTreeItem(tHandle, sTitle, tKey, novIdx)
self._treeMap[tKey] = tItem
+1 -1
View File
@@ -389,7 +389,7 @@ class GuiOutline(QTreeWidget):
currChapter = None
currScene = None
for _, tHandle, sTitle, novIdx in self.theProject.index.novelStructure(skipExcluded=True):
for _, tHandle, sTitle, novIdx in self.theProject.index.novelStructure(skipExcl=True):
tItem = self._createTreeItem(tHandle, sTitle, novIdx)