Commit cec82a13 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Fix clipping render bug

Clipping is happen over the bounding rectangle, so should provide the
clipped bounding rectangle.

Change-Id: I602da312a7ca327def378a887a75782c61cc680d
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent ea5169a1
...@@ -137,9 +137,9 @@ QImage GraphicalNodeInstance::renderImage() const ...@@ -137,9 +137,9 @@ QImage GraphicalNodeInstance::renderImage() const
{ {
updateDirtyNodeRecursive(quickItem()); 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); renderImage = renderImage.convertToFormat(QImage::Format_ARGB32_Premultiplied);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment