When no borders were specified the innerRect was calculated
based on the item size rather than the image size.
Change-Id: I764caca22aa8a0c6ed3babaad38a93764357cd00
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
qMax(1, d->pix.width() - border->right() - border->left()),
qMax(1, d->pix.height() - border->bottom() - border->top())));
} else {
- node->setInnerRect(QRectF(0, 0, width(), height()));
+ node->setInnerRect(QRectF(0, 0, d->pix.width(), d->pix.height()));
}
node->setRect(QRectF(0, 0, width(), height()));
node->setFiltering(d->smooth ? QSGTexture::Linear : QSGTexture::Nearest);