From cec82a13e18c5f48b29583adabbe840aa198a3df Mon Sep 17 00:00:00 2001 From: Marco Bubke <marco.bubke@digia.com> Date: Wed, 24 Apr 2013 17:33:17 +0200 Subject: [PATCH] QmlDesigner: Fix clipping render bug Clipping is happen over the bounding rectangle, so should provide the clipped bounding rectangle. Change-Id: I602da312a7ca327def378a887a75782c61cc680d Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> --- .../qmlpuppet/qml2puppet/instances/graphicalnodeinstance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/graphicalnodeinstance.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/graphicalnodeinstance.cpp index f17ba7895f4..78431c75137 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/graphicalnodeinstance.cpp +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/graphicalnodeinstance.cpp @@ -137,9 +137,9 @@ QImage GraphicalNodeInstance::renderImage() const { updateDirtyNodeRecursive(quickItem()); - QRectF boundingRect = boundingRectWithStepChilds(quickItem()); + QRectF renderBoundingRect = boundingRect(); - QImage renderImage = designerSupport()->renderImageForItem(quickItem(), boundingRect, boundingRect.size().toSize()); + QImage renderImage = designerSupport()->renderImageForItem(quickItem(), renderBoundingRect, renderBoundingRect.size().toSize()); renderImage = renderImage.convertToFormat(QImage::Format_ARGB32_Premultiplied); -- GitLab