mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'cover-ratio' of https://github.com/ihanson/calibre into master
This commit is contained in:
commit
8a3f112d3f
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user