widgets/wrapper: use bindable properties everywhere

Also fixes changes to margin not updating geometry
This commit is contained in:
outfoxxed 2025-05-24 01:25:35 -07:00
parent 8b5b12b722
commit e135de9ec6
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 257 additions and 155 deletions

View file

@ -61,6 +61,7 @@ void WrapperManager::setChild(QQuickItem* child) {
if (this->mChild->parentItem() == this->mWrapper) {
this->mChild->setParentItem(nullptr);
}
this->disconnectChild();
}
this->mChild = child;
@ -78,6 +79,8 @@ void WrapperManager::setChild(QQuickItem* child) {
if (auto* wrapper = this->mWrapper) {
child->setParentItem(wrapper);
}
this->connectChild();
}
emit this->initializedChildChanged();