add a comment to QTree.commonAncestor, make some methods private