diff --git a/openlp/core/lib/spelltextedit.py b/openlp/core/lib/spelltextedit.py index 866c608e5..08652c685 100644 --- a/openlp/core/lib/spelltextedit.py +++ b/openlp/core/lib/spelltextedit.py @@ -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,9 +180,11 @@ 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. + + Note, this is a Qt hook. """ if not self.spelling_dictionary: return