I have no particular knowledge of the innards of TCAS .. but one would consider that the mathematics would be based on standard pressure as the aim is to look at deltas rather than absolutes. If QNH, then setting errors (and most of us have been guilty of the odd oversight in setting the altimeter) would confuse the issue.