code: def setRecordSet(self, recordSet):
          
          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()
docs: Defines the record set that will be used to lookup the information for
          this tree.
          
          :param      records | [<Table>, ..] || None