forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user