Merge branch 'cover-ratio' of https://github.com/ihanson/calibre into master

This commit is contained in:
Kovid Goyal 2020-08-16 08:51:50 +05:30
commit 8a3f112d3f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -653,7 +653,7 @@ class CoversModel(QAbstractListModel): # {{{
text = (src + '\n' + sz) text = (src + '\n' + sz)
scaled = pmap.scaled( scaled = pmap.scaled(
int(CoverDelegate.ICON_SIZE[0] * pmap.devicePixelRatio()), int(CoverDelegate.ICON_SIZE[1] * pmap.devicePixelRatio()), 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()) scaled.setDevicePixelRatio(pmap.devicePixelRatio())
return (text, (scaled), pmap, waiting) return (text, (scaled), pmap, waiting)