forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user