def addRecordsFromThread(self, records):
        """
        Adds the given record to the system.
        
        :param      records | [<orb.Table>, ..]
        """
        label_mapper    = self.labelMapper()
        icon_mapper     = self.iconMapper()
        
        tree = None
        if self.showTreePopup():
            tree = self.treePopupWidget()
        
        # add the items to the list
        start = self.count()
        
        # update the item information
        blocked = self.signalsBlocked()
        self.blockSignals(True)
        for i, record in enumerate(records):
            index = start + i
            self.addItem(label_mapper(record))
            self.setItemData(index, wrapVariant(record), Qt.UserRole)
            
            if icon_mapper:
                self.setItemIcon(index, icon_mapper(record))
            
            if record == self._currentRecord:
                self.setCurrentIndex(self.count() - 1)
            
            if tree:
                XOrbRecordItem(tree, record)
        self.blockSignals(blocked)
def addRecordsFromThread ( self , records ) : label_mapper = self . labelMapper ( ) icon_mapper = self . iconMapper ( ) tree = None if self . showTreePopup ( ) : tree = self . treePopupWidget ( ) start = self . count ( ) blocked = self . signalsBlocked ( ) self . blockSignals ( True ) for i , record in enumerate ( records ) : index = start + i self . addItem ( label_mapper ( record ) ) self . setItemData ( index , wrapVariant ( record ) , Qt . UserRole ) if icon_mapper : self . setItemIcon ( index , icon_mapper ( record ) ) if record == self . _currentRecord : self . setCurrentIndex ( self . count ( ) - 1 ) if tree : XOrbRecordItem ( tree , record ) self . blockSignals ( blocked )
Adds the given record to the system.
        
        :param      records | [<orb.Table>, ..]