From ffac58c4e8ce92c3271ef62744056f0864c4b7f2 Mon Sep 17 00:00:00 2001 From: Liam Hoflay Date: Wed, 29 Apr 2020 12:09:04 +0100 Subject: [PATCH] Explicit QIcon for Katana/PyQt (v2.3.4+wwfx.1.0.0) --- python/tk_multi_publish2/progress/progress_handler.py | 6 +++--- .../tk_multi_publish2/publish_tree_widget/tree_node_item.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/tk_multi_publish2/progress/progress_handler.py b/python/tk_multi_publish2/progress/progress_handler.py index b7a45242..ea3e396e 100644 --- a/python/tk_multi_publish2/progress/progress_handler.py +++ b/python/tk_multi_publish2/progress/progress_handler.py @@ -192,7 +192,7 @@ def process_log_message(self, message, status, action): item.setText(0, message) if icon: - item.setIcon(0, icon) + item.setIcon(0, QtGui.QIcon(icon)) if self._logging_parent_item: self._logging_parent_item.addChild(item) @@ -278,11 +278,11 @@ def push(self, text, icon=None, publish_instance=None): self._logging_parent_item.addChild(item) if icon: - item.setIcon(0, icon) + item.setIcon(0, QtGui.QIcon(icon)) self._icon_label.setPixmap(icon) elif self._current_phase: std_icon = self._icon_lookup[self._current_phase] - item.setIcon(0, std_icon) + item.setIcon(0, QtGui.QIcon(std_icon)) self._icon_label.setPixmap(std_icon) self._progress_details.log_tree.setCurrentItem(item) diff --git a/python/tk_multi_publish2/publish_tree_widget/tree_node_item.py b/python/tk_multi_publish2/publish_tree_widget/tree_node_item.py index 441764a8..c0cc6a14 100644 --- a/python/tk_multi_publish2/publish_tree_widget/tree_node_item.py +++ b/python/tk_multi_publish2/publish_tree_widget/tree_node_item.py @@ -183,7 +183,7 @@ def double_clicked(self, column): else: icon = self._expanded_icon - self._embedded_widget.expand_indicator.setIcon(icon) + self._embedded_widget.expand_indicator.setIcon(QtGui.QIcon(icon)) def _check_expand_state(self): """ @@ -196,7 +196,7 @@ def _check_expand_state(self): else: icon = self._collapsed_icon - self._embedded_widget.expand_indicator.setIcon(icon) + self._embedded_widget.expand_indicator.setIcon(QtGui.QIcon(icon)) class TopLevelTreeNodeItem(TreeNodeItem):