'Overrides Qt Method'

def show(self, hide_replace=True):

    QWidget.show(self)
    self.visibility_changed.emit(True)
    if (self.editor is not None):
        if hide_replace:
            if self.replace_widgets[0].isVisible():
                self.hide_replace()
        text = self.editor.get_selected_text()
        if (hide_replace or (len(text.splitlines()) <= 1)):
            highlighted = True
            if (not text):
                highlighted = False
                try:
                    cursor = self.editor.textCursor()
                    cursor.select(QTextCursor.WordUnderCursor)
                    text = to_text_string(cursor.selectedText())
                except AttributeError:
                    pass
            if ((text and (not self.search_text.currentText())) or highlighted):
                self.search_text.setEditText(text)
                self.search_text.lineEdit().selectAll()
                self.refresh()
            else:
                self.search_text.lineEdit().selectAll()
        self.search_text.setFocus()
