... and the same for outline tree

This commit is contained in:
Veronica K. B. Olsen
2020-06-01 12:10:07 +02:00
parent b26ee7ae15
commit 4464171cb4
+8 -2
View File
@@ -89,8 +89,9 @@ class GuiProjectOutline(QTreeWidget):
self.mainConf = nw.CONFIG
self.theParent = theParent
self.theProject = theProject
self.theIndex = self.theParent.theIndex
self.optState = self.theProject.optState
self.theTheme = theParent.theTheme
self.theIndex = theParent.theIndex
self.optState = theProject.optState
self.headerMenu = GuiOutlineHeaderMenu(self)
self.firstView = True
@@ -337,6 +338,8 @@ class GuiProjectOutline(QTreeWidget):
headItem.setTextAlignment(self.colIndex[nwOutline.CCOUNT], Qt.AlignRight)
headItem.setTextAlignment(self.colIndex[nwOutline.WCOUNT], Qt.AlignRight)
headItem.setTextAlignment(self.colIndex[nwOutline.PCOUNT], Qt.AlignRight)
for hItem in self.treeOrder:
headItem.setFont(self.colIndex[hItem], self.theTheme.guiFont)
currTitle = None
currChapter = None
@@ -427,6 +430,9 @@ class GuiProjectOutline(QTreeWidget):
newItem.setText(self.colIndex[nwOutline.ENTITY], ", ".join(theRefs[nwKeyWords.ENTITY_KEY]))
newItem.setText(self.colIndex[nwOutline.CUSTOM], ", ".join(theRefs[nwKeyWords.CUSTOM_KEY]))
for i in self.treeOrder:
newItem.setFont(self.colIndex[i], self.theTheme.guiFont)
return newItem
# END Class GuiProjectOutline