mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py310: more float->int goodness
This commit is contained in:
parent
71246f3c2e
commit
67ad530492
@ -250,7 +250,7 @@ class Delegate(QStyledItemDelegate):
|
|||||||
if width and width != st.textWidth():
|
if width and width != st.textWidth():
|
||||||
st.setTextWidth(width)
|
st.setTextWidth(width)
|
||||||
br = st.size()
|
br = st.size()
|
||||||
return QSize(br.width() + self.MARGIN, br.height() + self.MARGIN)
|
return QSize(int(br.width() + self.MARGIN), int(br.height() + self.MARGIN))
|
||||||
|
|
||||||
def paint(self, painter, option, index):
|
def paint(self, painter, option, index):
|
||||||
QStyledItemDelegate.paint(self, painter, option, index)
|
QStyledItemDelegate.paint(self, painter, option, index)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user