← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~googol/openlp/abstract-method into lp:openlp

 

Andreas Preikschat has proposed merging lp:~googol/openlp/abstract-method into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~googol/openlp/abstract-method/+merge/200156

-fixed renamed Qt method 
-- 
https://code.launchpad.net/~googol/openlp/abstract-method/+merge/200156
Your team OpenLP Core is requested to review the proposed merge of lp:~googol/openlp/abstract-method into lp:openlp.
=== modified file 'openlp/core/lib/spelltextedit.py'
--- openlp/core/lib/spelltextedit.py	2013-12-24 08:56:50 +0000
+++ openlp/core/lib/spelltextedit.py	2013-12-29 20:18:56 +0000
@@ -133,7 +133,7 @@
         """
         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 @@
         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


Follow ups