Defines the record set that will be used to lookup the information for
        this tree.
        
        :param      records | [<Table>, ..] || None

def setRecordSet(self, recordSet):
        """
        Defines the record set that will be used to lookup the information for
        this tree.
        
        :param      records | [<Table>, ..] || None
        """
        if not self.tableType():
            self.setTableType(recordSet.table())
        
        self._currentRecordSet = None
        self._recordSet = recordSet
        
        try:
            self.setDatabase(recordSet.database())
        except AttributeError:
            pass
        
        if not self.signalsBlocked():
            self.refresh()
            self.recordsChanged.emit()