aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/imageviewer/imageview.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2019-04-10 17:40:38 +0200
committerAlessandro Portale <[email protected]>2019-04-11 07:12:02 +0000
commit2f6d43745a2dafebcdcb324e9ee44525841cc30e (patch)
treed41d980418137d82508b0788613757d3ce3004fb /src/plugins/imageviewer/imageview.cpp
parent88c790b72e78d728dd9e2dc2fb27c630accb8afe (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins/imageviewer/imageview.cpp')
-rw-r--r--src/plugins/imageviewer/imageview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/imageviewer/imageview.cpp b/src/plugins/imageviewer/imageview.cpp
index dbdcd8fe027..821074db20f 100644
--- a/src/plugins/imageviewer/imageview.cpp
+++ b/src/plugins/imageviewer/imageview.cpp
@@ -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();
}