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):