def __init__(self, parent): QtGui.QStandardItemModel.__init__(self, parent) self.match_text = '' self.full_text = '' self.case_sensitive = False self.icon_from_filename = decorators.memoize(qtutils.icon_from_filename) self.update_thread = GatherCompletionsThread(self) self.connect(self.update_thread, SIGNAL('items_gathered'), self.apply_matches)
def __init__(self, parent): QtGui.QStandardItemModel.__init__(self, parent) self.match_text = '' self.full_text = '' self.case_sensitive = False self.icon_from_filename = decorators.memoize(qtutils.icon_from_filename) self.update_thread = GatherCompletionsThread(self) self.connect(self.update_thread, SIGNAL('items_gathered(PyQt_PyObject)'), self.apply_matches, Qt.QueuedConnection)
def __init__(self, parent=None): standard.TreeWidget.__init__(self, parent=parent) self.icon_from_filename = decorators.memoize( qtutils.icon_from_filename) self.setSelectionMode(self.ExtendedSelection) self.setHeaderHidden(True)
def __init__(self, parent=None): standard.TreeWidget.__init__(self, parent=parent) self.icon_from_filename = decorators.memoize(qtutils.icon_from_filename) self.setSelectionMode(self.ExtendedSelection) self.setHeaderHidden(True)