|
|
|
@ -303,6 +303,8 @@ EventDelegateChooser::updatePolish() |
|
|
|
|
|
|
|
|
|
auto layoutItem = [this](QQuickItem *item, int inset) { |
|
|
|
|
if (item) { |
|
|
|
|
QObject::disconnect(item, &QQuickItem::implicitWidthChanged, this, &QQuickItem::polish); |
|
|
|
|
|
|
|
|
|
auto attached = qobject_cast<EventDelegateChooserAttachedType *>( |
|
|
|
|
qmlAttachedPropertiesObject<EventDelegateChooser>(item)); |
|
|
|
|
Q_ASSERT(attached != nullptr); |
|
|
|
@ -336,6 +338,8 @@ EventDelegateChooser::updatePolish() |
|
|
|
|
|
|
|
|
|
item->setWidth(width); |
|
|
|
|
item->ensurePolished(); |
|
|
|
|
|
|
|
|
|
QObject::connect(item, &QQuickItem::implicitWidthChanged, this, &QQuickItem::polish); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|