Clean up the syntax highlighter class

This commit is contained in:
Veronica Berglyd Olsen
2023-08-24 20:40:10 +02:00
parent f7ed133b2e
commit b54f81355a
2 changed files with 182 additions and 177 deletions
+2 -2
View File
@@ -397,7 +397,7 @@ class GuiDocEditor(QTextEdit):
self._checkDocSize(docSize)
spTemp = self.highLight.spellCheck
if self._bigDoc:
self.highLight.spellCheck = False
self.highLight.setSpellCheck(False)
bfTime = time()
self._allowAutoReplace(False)
@@ -418,7 +418,7 @@ class GuiDocEditor(QTextEdit):
self.docHeader.setTitleFromHandle(self._docHandle)
self.docFooter.setHandle(self._docHandle)
self.updateDocMargins()
self.highLight.spellCheck = spTemp
self.highLight.setSpellCheck(spTemp)
if tLine is None and self._nwItem is not None:
# For large documents, we queue the repositioning until the