Пример #1
0
 def __init__(self, parent, type=0):
     QLineEdit.__init__(self, parent)
     self.col = None
     self.model = QStringListModel()
     self.type = type
     if type == 0:
         self.completer = TagCompleter(self.model, parent, self)
     else:
         self.completer = QCompleter(self.model, parent)
     self.completer.setCompletionMode(QCompleter.PopupCompletion)
     self.completer.setCaseSensitivity(Qt.CaseInsensitive)
     self.setCompleter(self.completer)