Data file manager: Fix errors on systems with larger font sizes

This commit is contained in:
Kovid Goyal 2023-08-05 14:26:51 +05:30
parent 0314d2d921
commit 320c11210f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -75,7 +75,7 @@ class Delegate(QStyledItemDelegate):
if self.doc_size is None:
d = self.doc_for_index(index)
self.doc_size = d.size()
ans.setHeight(max(self.doc_size.height() + 2, ans.height()))
ans.setHeight(max(int(self.doc_size.height() + 2), ans.height()))
return ans
def paint(self, painter, option, index):