示例#1
0
 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)
示例#2
0
 def __init__(self, parent, clear_msg):
     HistoryComboBox.__init__(self, parent)
     self.disable_popup = tprefs['disable_completion_popup_for_search']
     self.clear_msg = clear_msg
示例#3
0
 def __init__(self, parent, clear_msg):
     HistoryComboBox.__init__(self, parent)
     self.disable_popup = tprefs['disable_completion_popup_for_search']
     self.clear_msg = clear_msg