Function TreeItem.isVisible

Returns true if all parents are expanded.

bool isVisible();