Add some helper functions to navigate in the tree.
Use more QSharePointer.