Widget* Widget::clone() { Widget* clonedWidget = createCloneInstance(); clonedWidget->copyProperties(this); clonedWidget->copyClonedWidgetChildren(this); return clonedWidget; }
LayoutParameter* LayoutParameter::clone() { LayoutParameter* clonedParameter = createCloneInstance(); clonedParameter->copyProperties(this); return clonedParameter; }