fixed method rename

This commit is contained in:
Andreas Preikschat 2013-12-29 21:13:41 +01:00
parent fcd4f8adcb
commit 4c145071af

View File

@ -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.
"""