mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6dcf731564
commit
2f0d3e3d58
@ -64,9 +64,9 @@ class Heading(QWidget):
|
||||
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…
x
Reference in New Issue
Block a user