mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix deprecation warning
This commit is contained in:
parent
78cb1b9c47
commit
89b0adfb43
@ -372,7 +372,7 @@ class CoverView(QWidget):
|
||||
f.setBold(True)
|
||||
p.setFont(f)
|
||||
sz = u'\u00a0%d x %d\u00a0'%(self.pixmap.width(), self.pixmap.height())
|
||||
flags = Qt.AlignBottom|Qt.AlignRight|Qt.TextSingleLine
|
||||
flags = int(Qt.AlignBottom|Qt.AlignRight|Qt.TextSingleLine)
|
||||
szrect = p.boundingRect(sztgt, flags, sz)
|
||||
p.fillRect(szrect.adjusted(0, 0, 0, 4), QColor(0, 0, 0, 200))
|
||||
p.setPen(QPen(QColor(255,255,255)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user