From 46e2d51044b253e1a61dc8013f107bdd3c08cc28 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 9 Sep 2021 20:40:11 +0300 Subject: [PATCH] scripting: Make thumbnaills use linear filter QSGImageNode ignores QSGTexture's filter, one has to specify it using QSGImageNode::setFiltering(). In hindsight, we need to figure out how to integrate the lanczos filter with window thumbnails and use it instead. BUG: 441709 --- src/scripting/thumbnailitem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripting/thumbnailitem.cpp b/src/scripting/thumbnailitem.cpp index f1fcc90bae..3d794cb593 100644 --- a/src/scripting/thumbnailitem.cpp +++ b/src/scripting/thumbnailitem.cpp @@ -229,6 +229,7 @@ QSGNode *ThumbnailItemBase::updatePaintNode(QSGNode *oldNode, QQuickItem::Update QSGImageNode *node = static_cast(oldNode); if (!node) { node = window()->createImageNode(); + node->setFiltering(QSGTexture::Linear); } node->setTexture(m_provider->texture());