| 111 | } |
| 112 | |
| 113 | void WidgetExtension::attach(WidgetExtension* ext) |
| 114 | { |
| 115 | if (ext->mParent != this) |
| 116 | { |
| 117 | if (ext->mParent) |
| 118 | { |
| 119 | auto children = ext->mParent->children(); |
| 120 | std::erase(children, ext); |
| 121 | ext->mParent->setChildren(children); |
| 122 | } |
| 123 | ext->detachFromParent(); |
| 124 | } |
| 125 | ext->mParent = this; |
| 126 | ext->mTemplateChild = false; |
| 127 | ext->widget()->attachToWidget(mSlot->widget()); |
| 128 | } |
| 129 | |
| 130 | void WidgetExtension::attachTemplate(WidgetExtension* ext) |
| 131 | { |
no test coverage detected