| 876 | } |
| 877 | |
| 878 | void Control::setParent(sp<Control> Parent) |
| 879 | { |
| 880 | if (Parent) |
| 881 | { |
| 882 | auto previousParent = this->owningControl.lock(); |
| 883 | if (previousParent) |
| 884 | { |
| 885 | LogError("Reparenting control"); |
| 886 | } |
| 887 | Parent->Controls.push_back(shared_from_this()); |
| 888 | Parent->setDirty(); |
| 889 | } |
| 890 | owningControl = Parent; |
| 891 | } |
| 892 | |
| 893 | void Control::setParent(sp<Control> Parent, int position) |
| 894 | { |
no test coverage detected