50 |
50 |
51 self.findtextCombo.setCompleter(None) |
51 self.findtextCombo.setCompleter(None) |
52 self.findtextCombo.lineEdit().returnPressed.connect(self.__findByReturnPressed) |
52 self.findtextCombo.lineEdit().returnPressed.connect(self.__findByReturnPressed) |
53 self.findtextCombo.lineEdit().textEdited.connect(self.__searchTextEdited) |
53 self.findtextCombo.lineEdit().textEdited.connect(self.__searchTextEdited) |
54 |
54 |
|
55 @pyqtSlot(str) |
55 def on_findtextCombo_editTextChanged(self, txt): |
56 def on_findtextCombo_editTextChanged(self, txt): |
56 """ |
57 """ |
57 Private slot to enable/disable the find buttons. |
58 Private slot to enable/disable the find buttons. |
58 |
59 |
59 @param txt text of the combobox (string) |
60 @param txt text of the combobox (string) |
60 """ |
61 """ |
61 self.findPrevButton.setEnabled(txt != "") |
62 self.findPrevButton.setEnabled(txt != "") |
62 self.findNextButton.setEnabled(txt != "") |
63 self.findNextButton.setEnabled(txt != "") |
63 |
64 |
|
65 @pyqtSlot(str) |
64 def __searchTextEdited(self, txt): |
66 def __searchTextEdited(self, txt): |
65 """ |
67 """ |
66 Private slot to perform an incremental search. |
68 Private slot to perform an incremental search. |
67 |
69 |
68 @param txt current text of the search combos line edit (string) |
70 @param txt current text of the search combos line edit (string) |