forked from quickshell/quickshell
widgets/wrapper: use bindable properties everywhere
Also fixes changes to margin not updating geometry
This commit is contained in:
parent
8b5b12b722
commit
e135de9ec6
5 changed files with 257 additions and 155 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue