another py3.10 compat fix

This commit is contained in:
Kovid Goyal 2021-06-24 08:24:05 +05:30
parent e7397bda52
commit ca8e54cc02
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)
# }}}