Require at least Qt 5.10 instead
This commit is contained in:
@@ -214,14 +214,14 @@ def main(sysArgs=None):
|
|||||||
"At least Python 3.7 is required, found %s" % CONFIG.verPyString
|
"At least Python 3.7 is required, found %s" % CONFIG.verPyString
|
||||||
)
|
)
|
||||||
errorCode |= 0x04
|
errorCode |= 0x04
|
||||||
if CONFIG.verQtValue < 50900:
|
if CONFIG.verQtValue < 51000:
|
||||||
errorData.append(
|
errorData.append(
|
||||||
"At least Qt5 version 5.9 is required, found %s" % CONFIG.verQtString
|
"At least Qt5 version 5.10 is required, found %s" % CONFIG.verQtString
|
||||||
)
|
)
|
||||||
errorCode |= 0x08
|
errorCode |= 0x08
|
||||||
if CONFIG.verPyQtValue < 50900:
|
if CONFIG.verPyQtValue < 51000:
|
||||||
errorData.append(
|
errorData.append(
|
||||||
"At least PyQt5 version 5.9 is required, found %s" % CONFIG.verPyQtString
|
"At least PyQt5 version 5.10 is required, found %s" % CONFIG.verPyQtString
|
||||||
)
|
)
|
||||||
errorCode |= 0x10
|
errorCode |= 0x10
|
||||||
|
|
||||||
|
|||||||
@@ -303,10 +303,7 @@ class GuiDocEditor(QTextEdit):
|
|||||||
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
|
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
|
||||||
|
|
||||||
# Refresh the tab stops
|
# Refresh the tab stops
|
||||||
if self.mainConf.verQtValue >= 51000:
|
self.setTabStopDistance(self.mainConf.getTabWidth())
|
||||||
self.setTabStopDistance(self.mainConf.getTabWidth())
|
|
||||||
else: # pragma: no cover
|
|
||||||
self.setTabStopWidth(self.mainConf.getTabWidth())
|
|
||||||
|
|
||||||
# Initialise the syntax highlighter
|
# Initialise the syntax highlighter
|
||||||
self.highLight.initHighlighter()
|
self.highLight.initHighlighter()
|
||||||
|
|||||||
@@ -150,10 +150,7 @@ class GuiDocViewer(QTextBrowser):
|
|||||||
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
|
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
|
||||||
|
|
||||||
# Refresh the tab stops
|
# Refresh the tab stops
|
||||||
if self.mainConf.verQtValue >= 51000:
|
self.setTabStopDistance(self.mainConf.getTabWidth())
|
||||||
self.setTabStopDistance(self.mainConf.getTabWidth())
|
|
||||||
else: # pragma: no cover
|
|
||||||
self.setTabStopWidth(self.mainConf.getTabWidth())
|
|
||||||
|
|
||||||
# If we have a document open, we should reload it in case the font changed
|
# If we have a document open, we should reload it in case the font changed
|
||||||
if self._docHandle is not None:
|
if self._docHandle is not None:
|
||||||
@@ -193,10 +190,7 @@ class GuiDocViewer(QTextBrowser):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
# Refresh the tab stops
|
# Refresh the tab stops
|
||||||
if self.mainConf.verQtValue >= 51000:
|
self.setTabStopDistance(self.mainConf.getTabWidth())
|
||||||
self.setTabStopDistance(self.mainConf.getTabWidth())
|
|
||||||
else: # pragma: no cover
|
|
||||||
self.setTabStopWidth(self.mainConf.getTabWidth())
|
|
||||||
|
|
||||||
# Must be before setHtml
|
# Must be before setHtml
|
||||||
if updateHistory:
|
if updateHistory:
|
||||||
|
|||||||
@@ -1265,10 +1265,7 @@ class GuiBuildNovelDocView(QTextBrowser):
|
|||||||
self.setFont(theFont)
|
self.setFont(theFont)
|
||||||
|
|
||||||
# Set the tab stops
|
# Set the tab stops
|
||||||
if self.mainConf.verQtValue >= 51000:
|
self.setTabStopDistance(self.mainConf.getTabWidth())
|
||||||
self.setTabStopDistance(self.mainConf.getTabWidth())
|
|
||||||
else: # pragma: no cover
|
|
||||||
self.setTabStopWidth(self.mainConf.getTabWidth())
|
|
||||||
|
|
||||||
docPalette = self.palette()
|
docPalette = self.palette()
|
||||||
docPalette.setColor(QPalette.Base, QColor(255, 255, 255))
|
docPalette.setColor(QPalette.Base, QColor(255, 255, 255))
|
||||||
|
|||||||
Reference in New Issue
Block a user