fixed refactoring errors

This commit is contained in:
Andreas Preikschat 2013-03-07 10:01:42 +01:00
parent cbb7de3928
commit 580baf76f4
2 changed files with 4 additions and 4 deletions

View File

@ -281,7 +281,7 @@ class MediaManagerItem(QtGui.QWidget):
self.pageLayout.addWidget(self.searchWidget)
# Signals and slots
self.searchTextEdit.returnPressed.connect(self.onSearchTextButtonClicked)
self.searchTextEdit.clicked.connect(self.onSearchTextButtonClicked)
self.searchTextButton.clicked.connect(self.onSearchTextButtonClicked)
self.searchTextEdit.textChanged.connect(self.onSearchTextEditChanged)
def addCustomContextActions(self):

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,9 +180,9 @@ class Highlighter(QtGui.QSyntaxHighlighter):
QtGui.QSyntaxHighlighter.__init__(self, *args)
self.spelling_dictionary = None
def highlight_block(self, text):
def highlightBlock(self, text):
"""
Highlight misspelt words in a block of text
Highlight misspelt words in a block of text.
"""
if not self.spelling_dictionary:
return