Preserve cover aspect ratio in the download preview

This commit is contained in:
Ira Hanson 2020-08-15 14:04:25 -05:00
parent 889437588d
commit 8c3be2a766
No known key found for this signature in database
GPG Key ID: E657F2E621AACA14

View File

@ -653,7 +653,7 @@ class CoversModel(QAbstractListModel): # {{{
text = (src + '\n' + sz)
scaled = pmap.scaled(
int(CoverDelegate.ICON_SIZE[0] * pmap.devicePixelRatio()), int(CoverDelegate.ICON_SIZE[1] * pmap.devicePixelRatio()),
Qt.IgnoreAspectRatio, Qt.SmoothTransformation)
Qt.KeepAspectRatio, Qt.SmoothTransformation)
scaled.setDevicePixelRatio(pmap.devicePixelRatio())
return (text, (scaled), pmap, waiting)