Skip to content
Snippets Groups Projects
Commit 0342c46c authored by Kentaro Wada's avatar Kentaro Wada
Browse files

Fix for sizeHint: it must return QSizeF

parent a5cca509
Branches
No related tags found
No related merge requests found
......@@ -61,9 +61,9 @@ class HTMLDelegate(QtWidgets.QStyledItemDelegate):
def sizeHint(self, option, index):
thefuckyourshitup_constant = 4
return QtCore.QSizeF(
self.doc.idealWidth(),
self.doc.size().height() - thefuckyourshitup_constant,
return QtCore.QSize(
int(self.doc.idealWidth()),
int(self.doc.size().height() - thefuckyourshitup_constant),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment