From c642c4a22ad96a79a809c2d9fabfb9fafea478ec Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 24 Sep 2021 18:13:04 +0200 Subject: [PATCH] removed unused code --- openpype/tools/new_publisher/widgets/list_view_widgets.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/openpype/tools/new_publisher/widgets/list_view_widgets.py b/openpype/tools/new_publisher/widgets/list_view_widgets.py index bc9e004004..f8bb3be140 100644 --- a/openpype/tools/new_publisher/widgets/list_view_widgets.py +++ b/openpype/tools/new_publisher/widgets/list_view_widgets.py @@ -110,6 +110,7 @@ class ListItemDelegate(QtWidgets.QStyledItemDelegate): painter.setRenderHints( painter.Antialiasing | painter.SmoothPixmapTransform + | painter.TextAntialiasing ) painter.save() painter.setClipRect(expander_rect) @@ -122,11 +123,6 @@ class ListItemDelegate(QtWidgets.QStyledItemDelegate): painter.restore() # Draw text and icon - widget = option.widget - if widget: - style = widget.style() - else: - style = QtWidgets.QApplication.style() font = index.data(QtCore.Qt.FontRole) if not font: font = option.font