Fixed bug in QTreeTest