Commit c533ef79 authored by Tijmen de Mes's avatar Tijmen de Mes

Fixed python 3.10 warnings

parent 1799e5f3
...@@ -2096,8 +2096,8 @@ class ContactDetailDelegate(QStyledItemDelegate, ColorHelperMixin): ...@@ -2096,8 +2096,8 @@ class ContactDetailDelegate(QStyledItemDelegate, ColorHelperMixin):
palette = option.palette palette = option.palette
rect = widget.style().subElementRect(QStyle.SE_ItemViewItemCheckIndicator, option, widget) rect = widget.style().subElementRect(QStyle.SE_ItemViewItemCheckIndicator, option, widget)
x = rect.center().x() - 3.5 x = int(rect.center().x() - 3.5)
y = rect.center().y() - 2.5 y = int(rect.center().y() - 2.5)
pen_thickness = 2.0 pen_thickness = 2.0
color = palette.color(QPalette.WindowText) color = palette.color(QPalette.WindowText)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment