mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Preserve cover aspect ratio in the download preview
This commit is contained in:
parent
889437588d
commit
8c3be2a766
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user