def __init__(self, parent=None): HistoryComboBox.__init__(self, parent) self.lineEdit().setPlaceholderText(_('Search')) self.lineEdit().setClearButtonEnabled(True) ac = self.lineEdit().findChild(QAction, QT_HIDDEN_CLEAR_ACTION) if ac is not None: ac.triggered.connect(self.cleared)
def __init__(self, parent, clear_msg): HistoryComboBox.__init__(self, parent) self.disable_popup = tprefs['disable_completion_popup_for_search'] self.clear_msg = clear_msg