Spell checker context menu can now add words to dictionary for current project

This commit is contained in:
Veronica K. B. Olsen
2019-05-10 23:11:46 +02:00
parent f26cb7c281
commit d6409a5bf9
4 changed files with 62 additions and 16 deletions
+6 -2
View File
@@ -20,13 +20,13 @@ logger = logging.getLogger(__name__)
class GuiDocHighlighter(QSyntaxHighlighter):
def __init__(self, theDoc, theDict):
def __init__(self, theDoc):
QSyntaxHighlighter.__init__(self, theDoc)
logger.debug("Initialising DocHighlighter ...")
self.mainConf = nw.CONFIG
self.theDoc = theDoc
self.theDict = theDict
self.theDict = None
self.hRules = []
self.colHead = QColor( 0,155,200)
@@ -151,6 +151,10 @@ class GuiDocHighlighter(QSyntaxHighlighter):
return
def setDict(self, theDict):
self.theDict = theDict
return
def _makeFormat(self, fmtCol=None, fmtStyle=None, fmtSize=None):
theFormat = QTextCharFormat()