It now calls setParent() afterwards instead of requiring the last constructor parameter to be a parent pointer.