mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
another py3.10 compat fix
This commit is contained in:
parent
e7397bda52
commit
ca8e54cc02
@ -55,7 +55,7 @@ class RevealBar(QWidget): # {{{
|
||||
painter = QPainter(self)
|
||||
pal = self.palette()
|
||||
col = pal.color(QPalette.ColorRole.Button)
|
||||
rect.setLeft(rect.left() + (rect.width() * self._animated_size))
|
||||
rect.setLeft(rect.left() + int(rect.width() * self._animated_size))
|
||||
painter.setClipRect(rect)
|
||||
painter.fillRect(self.rect(), col)
|
||||
# }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user