The correct fix for tree widget font sizes, issue #273
This commit is contained in:
@@ -450,14 +450,8 @@ class GuiProjectEditReplace(QWidget):
|
||||
self.listBox.itemSelectionChanged.connect(self._selectedItem)
|
||||
self.listBox.setIndentation(0)
|
||||
|
||||
treeHead = self.listBox.headerItem()
|
||||
treeHead.setFont(0, self.theTheme.guiFont)
|
||||
treeHead.setFont(1, self.theTheme.guiFont)
|
||||
|
||||
for aKey, aVal in self.theProject.autoReplace.items():
|
||||
newItem = QTreeWidgetItem(["<%s>" % aKey, aVal])
|
||||
newItem.setFont(0, self.theTheme.guiFont)
|
||||
newItem.setFont(1, self.theTheme.guiFont)
|
||||
self.listBox.addTopLevelItem(newItem)
|
||||
|
||||
self.listBox.sortByColumn(0, Qt.AscendingOrder)
|
||||
@@ -548,8 +542,6 @@ class GuiProjectEditReplace(QWidget):
|
||||
saveKey = "<keyword%d>" % (self.listBox.topLevelItemCount() + 1)
|
||||
newVal = ""
|
||||
newItem = QTreeWidgetItem([saveKey, newVal])
|
||||
newItem.setFont(0, self.theTheme.guiFont)
|
||||
newItem.setFont(1, self.theTheme.guiFont)
|
||||
self.listBox.addTopLevelItem(newItem)
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user