mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-28 10:03:38 +01:00
...
This commit is contained in:
parent
6dcf731564
commit
2f0d3e3d58
1 changed files with 2 additions and 2 deletions
|
|
@ -64,9 +64,9 @@ def paintEvent(self, ev):
|
|||
bg = self.palette().color(QPalette.AlternateBase)
|
||||
if self.hovering:
|
||||
bg = bg.lighter(115)
|
||||
p.fillRect(ev.rect(), bg)
|
||||
p.fillRect(self.rect(), bg)
|
||||
try:
|
||||
p.drawText(ev.rect(), Qt.AlignLeft|Qt.AlignVCenter|Qt.TextSingleLine, self.rendered_text)
|
||||
p.drawText(self.rect(), Qt.AlignLeft|Qt.AlignVCenter|Qt.TextSingleLine, self.rendered_text)
|
||||
finally:
|
||||
p.end()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue