Function TreeItem.addChild

adds child, returns added item

TreeItem addChild(
  TreeItem item,
  int index = -1
);