ImageViewer: Don't blur the ImageViewer background pattern on HighDpi

Simply don't draw the background pattern with interpolated scaling.

Task-number: QTCREATORBUG-22280
Change-Id: Iae17f4ce663ae82ee00cbebaa9830b5bb86d5735
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2019-04-10 17:40:38 +02:00
parent 88c790b72e
commit 2f6d43745a

View File

@@ -151,6 +151,7 @@ void ImageView::drawBackground(QPainter *p, const QRectF &)
{
p->save();
p->resetTransform();
p->setRenderHint(QPainter::SmoothPixmapTransform, false);
p->drawTiledPixmap(viewport()->rect(), backgroundBrush().texture());
p->restore();
}