--- a/WebBrowser/SearchWidget.py Sat Mar 19 18:18:09 2016 +0100 +++ b/WebBrowser/SearchWidget.py Sat Mar 19 20:07:34 2016 +0100 @@ -34,10 +34,6 @@ self.__mainWindow = mainWindow - # TODO: Check what Qt 5.6 can offer (maybe using JavaScript) - self.wrapCheckBox.setVisible(False) - self.highlightAllCheckBox.setVisible(False) -## self.wrapCheckBox.setChecked(True) self.closeButton.setIcon(UI.PixmapCache.getIcon("close.png")) self.findPrevButton.setIcon(UI.PixmapCache.getIcon("1leftarrow.png")) self.findNextButton.setIcon(UI.PixmapCache.getIcon("1rightarrow.png")) @@ -73,7 +69,6 @@ @param txt current text of the search combos line edit (string) (unused) """ - self.on_highlightAllCheckBox_toggled(True) self.__findNextPrev() def __findNextPrev(self): @@ -86,13 +81,10 @@ if not self.findtextCombo.currentText(): return - # TODO: adjust this to the browser API self.__mainWindow.currentBrowser().findNextPrev( self.findtextCombo.currentText(), self.caseCheckBox.isChecked(), self.__findBackwards, - self.wrapCheckBox.isChecked(), - False, self.__findNextPrevCallback) def __findNextPrevCallback(self, found): @@ -105,24 +97,6 @@ if not found: self.infoLabel.setText(self.tr("Expression was not found.")) self.__setFindtextComboBackground(True) -## -## @pyqtSlot(bool) -## def on_highlightAllCheckBox_toggled(self, checked): -## """ -## Private slot to toggle the highlight of all occurrences. -## -## @param checked flag indicating the check box toggle state (boolean) -## """ -## cbr = self.__mainWindow.currentBrowser() -## if cbr is None: -## return -## cbr.findNextPrev( -## "", False, False, False, True) -## if self.highlightAllCheckBox.isChecked(): -## cbr.findNextPrev( -## self.findtextCombo.currentText(), -## self.caseCheckBox.isChecked(), -## False, False, True) @pyqtSlot() def on_findNextButton_clicked(self):