With a few modifications, novelWriter now starts wuth Qt 5.2.1 and Python 3.4.3

This commit is contained in:
Veronica K. B. Olsen
2020-05-16 20:18:39 +02:00
parent 24596f28d6
commit bb894926d0
3 changed files with 9 additions and 4 deletions
+6 -2
View File
@@ -176,8 +176,12 @@ class Config:
self.osUnknown = True
# Other System Info
self.hostName = QSysInfo.machineHostName()
self.kernelVer = QSysInfo.kernelVersion()
if self.verQtValue >= 50600:
self.hostName = QSysInfo.machineHostName()
self.kernelVer = QSysInfo.kernelVersion()
else:
self.hostName = "Unknown"
self.kernelVer = "Unknown"
# Packages
self.hasEnchant = False
+1 -1
View File
@@ -296,7 +296,7 @@ class GuiProjectEditStatus(QWidget):
newItem.setIcon(QIcon(newIcon))
newItem.setData(Qt.UserRole, len(self.colData))
self.listBox.addItem(newItem)
self.colData.append((iName,*iCol,oName))
self.colData.append((iName,iCol[0],iCol[1],iCol[2],oName))
self.colCounts.append(nUse)
return newItem
+2 -1
View File
@@ -91,7 +91,8 @@ class GuiDocHighlighter(QSyntaxHighlighter):
self.colTagErr = QColor(*self.theTheme.colTagErr)
self.colRepTag = QColor(*self.theTheme.colRepTag)
self.colMod = QColor(*self.theTheme.colMod)
self.colTrail = QColor(*self.theTheme.colEmph,64)
self.colTrail = QColor(*self.theTheme.colEmph)
self.colTrail.setAlpha(64)
self.hStyles = {
"header1" : self._makeFormat(self.colHead, "bold",1.8),