QmlDesigner: Fix poor snapshot quality

It removes the image cache in the AssetsLibraryView too because it is not
used. Fix ODR violation too.

Fixes: QDS-6553
Change-Id: I83d8f8b7cd385e2c8352986e4b5a5abd76ac7d5b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marco Bubke
2022-04-11 17:20:37 +02:00
parent 63aaa65439
commit 4bd71ebf6a
16 changed files with 99 additions and 93 deletions

View File

@@ -68,7 +68,8 @@ void PreviewImageTooltip::setImage(const QImage &image, bool scale)
if (scale) {
m_ui->imageLabel->setPixmap(pm.scaled(m_ui->imageLabel->width(),
m_ui->imageLabel->height(),
Qt::KeepAspectRatio));
Qt::KeepAspectRatio,
Qt::SmoothTransformation));
} else {
m_ui->imageLabel->setPixmap(pm);
}