mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-09-28 23:41:14 +12:00
Spell checking works but does not underline misspelled words #147
This commit is contained in:
parent
aed93550f2
commit
67efc47a18
1 changed files with 2 additions and 1 deletions
|
@ -88,6 +88,7 @@ class basicHighlighter(QSyntaxHighlighter):
|
||||||
if self.editor._dict and not self.editor._dict.check(word_object.group()):
|
if self.editor._dict and not self.editor._dict.check(word_object.group()):
|
||||||
format = self.format(word_object.start())
|
format = self.format(word_object.start())
|
||||||
format.setUnderlineColor(self._misspelledColor)
|
format.setUnderlineColor(self._misspelledColor)
|
||||||
format.setUnderlineStyle(QTextCharFormat.SpellCheckUnderline)
|
# SpellCheckUnderline fails with some fonts
|
||||||
|
format.setUnderlineStyle(QTextCharFormat.WaveUnderline)
|
||||||
self.setFormat(word_object.start(),
|
self.setFormat(word_object.start(),
|
||||||
word_object.end() - word_object.start(), format)
|
word_object.end() - word_object.start(), format)
|
||||||
|
|
Loading…
Reference in a new issue