mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 19:24:51 +01:00
Book details popup: Use the general window color as background for the cover
This commit is contained in:
parent
f4bfb45601
commit
93e3ddab91
1 changed files with 1 additions and 0 deletions
|
|
@ -413,6 +413,7 @@ def set_pixmap(self, pmap):
|
|||
self.scene = QGraphicsScene()
|
||||
self.scene.addPixmap(pmap)
|
||||
self.setScene(self.scene)
|
||||
self.setBackgroundBrush(self.palette().color(QPalette.ColorRole.Window))
|
||||
|
||||
def paintEvent(self, ev):
|
||||
QGraphicsView.paintEvent(self, ev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue