From 4c145071af7f62a66b377c88f43d1310eba16166 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sun, 29 Dec 2013 21:13:41 +0100 Subject: [PATCH 1/2] fixed method rename --- openlp/core/lib/spelltextedit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/lib/spelltextedit.py b/openlp/core/lib/spelltextedit.py index 866c608e5..f1b99b64f 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,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. """ From 8975fec06e89acc4dd86af4b4c4ec99e2f19f8ee Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sun, 29 Dec 2013 21:18:22 +0100 Subject: [PATCH 2/2] added comment --- openlp/core/lib/spelltextedit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openlp/core/lib/spelltextedit.py b/openlp/core/lib/spelltextedit.py index f1b99b64f..08652c685 100644 --- a/openlp/core/lib/spelltextedit.py +++ b/openlp/core/lib/spelltextedit.py @@ -183,6 +183,8 @@ class Highlighter(QtGui.QSyntaxHighlighter): def highlightBlock(self, text): """ Highlight misspelt words in a block of text. + + Note, this is a Qt hook. """ if not self.spelling_dictionary: return