net-proxy/clash: version bump to 1.7.0 (#1188)
[gentoo-zh.git] / dev-python / labelme / files / subElementRect.patch
blob258059e4300079e4afa2735894a6067ad6bc1acf
1 diff --git a/labelme/widgets/label_list_widget.py b/labelme/widgets/label_list_widget.py
2 index a3569c4..8debc74 100644
3 --- a/labelme/widgets/label_list_widget.py
4 +++ b/labelme/widgets/label_list_widget.py
5 @@ -43,7 +43,7 @@ class HTMLDelegate(QtWidgets.QStyledItemDelegate):
6 option.palette.color(QPalette.Active, QPalette.Text),
9 - textRect = style.subElementRect(QStyle.SE_ItemViewItemText, options)
10 + textRect = style.subElementRect(QStyle.SE_ItemViewItemText, options, None)
12 if index.column() != 0:
13 textRect.adjust(5, 0, 0, 0)