mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:43:40 +02:00
Fix deprecation warning
This commit is contained in:
parent
78cb1b9c47
commit
89b0adfb43
1 changed files with 1 additions and 1 deletions
|
|
@ -372,7 +372,7 @@ def paintEvent(self, event):
|
|||
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…
Reference in a new issue