forked from openlp/openlp
fixed method rename
This commit is contained in:
parent
fcd4f8adcb
commit
4c145071af
@ -133,7 +133,7 @@ class SpellTextEdit(QtGui.QPlainTextEdit):
|
||||
"""
|
||||
self.dictionary = enchant.Dict(action.text())
|
||||
self.highlighter.spelling_dictionary = self.dictionary
|
||||
self.highlighter.highlight_block(self.toPlainText())
|
||||
self.highlighter.highlightBlock(self.toPlainText())
|
||||
self.highlighter.rehighlight()
|
||||
|
||||
def correct_word(self, word):
|
||||
@ -180,7 +180,7 @@ class Highlighter(QtGui.QSyntaxHighlighter):
|
||||
super(Highlighter, self).__init__(*args)
|
||||
self.spelling_dictionary = None
|
||||
|
||||
def highlight_block(self, text):
|
||||
def highlightBlock(self, text):
|
||||
"""
|
||||
Highlight misspelt words in a block of text.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user