QmlDesigner: Fix DesignerEffects rendering

The property name changed and we adda bit more padding.

Change-Id: I9432f3d5a053d38feb32649be52a99696a9f3b6c
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
Thomas Hartmann
2024-04-12 17:06:46 +02:00
parent 36f666174f
commit 8a21dc325c

View File

@@ -126,8 +126,8 @@ QRectF ServerNodeInstance::effectAdjustedBoundingRect(QQuickItem *item)
if (pItem && pItem->layer() && pItem->layer()->sourceRect().isValid()) {
return pItem->layer()->sourceRect();
} else if (prop.read().toBool()) {
prop = QQmlProperty(item, "allEffects");
QRectF rect = prop.read().toRectF().adjusted(-20, -20, 20, 20);
prop = QQmlProperty(item, "effectBoundingBox");
QRectF rect = prop.read().toRectF().adjusted(-40, -40, 40, 40);
if (rect.isValid())
return rect;
return item->boundingRect();