add smooth transformation to loader thumbnail widget

This commit is contained in:
Milan Kolar 2021-10-19 12:35:37 +02:00
parent 3c1b04a110
commit 5b60f07f13

View file

@ -786,7 +786,10 @@ class ThumbnailWidget(QtWidgets.QLabel):
def scale_pixmap(self, pixmap):
return pixmap.scaled(
self.width(), self.height(), QtCore.Qt.KeepAspectRatio
self.width(),
self.height(),
QtCore.Qt.KeepAspectRatio,
QtCore.Qt.SmoothTransformation
)
def set_thumbnail(self, entity=None):