mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
py310: more float->int goodness
This commit is contained in:
parent
9d0b555d80
commit
0ffbd4e3a8
@ -455,7 +455,7 @@ class CoverDelegate(QStyledItemDelegate):
|
||||
if spc < 0.01:
|
||||
self.spacing = max(10, min(50, int(0.1 * self.original_width)))
|
||||
else:
|
||||
self.spacing = self.parent().logicalDpiX() * CM_TO_INCH * spc
|
||||
self.spacing = int(self.parent().logicalDpiX() * CM_TO_INCH * spc)
|
||||
|
||||
def sizeHint(self, option, index):
|
||||
return self.item_size
|
||||
|
Loading…
x
Reference in New Issue
Block a user