Fix deprecation warning

This commit is contained in:
Kovid Goyal 2019-12-18 16:55:09 +05:30
parent 78cb1b9c47
commit 89b0adfb43
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -372,7 +372,7 @@ class CoverView(QWidget):
f.setBold(True) f.setBold(True)
p.setFont(f) p.setFont(f)
sz = u'\u00a0%d x %d\u00a0'%(self.pixmap.width(), self.pixmap.height()) 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) szrect = p.boundingRect(sztgt, flags, sz)
p.fillRect(szrect.adjusted(0, 0, 0, 4), QColor(0, 0, 0, 200)) p.fillRect(szrect.adjusted(0, 0, 0, 4), QColor(0, 0, 0, 200))
p.setPen(QPen(QColor(255,255,255))) p.setPen(QPen(QColor(255,255,255)))