Skip to content

Commit ffac58c

Browse files
LiametcJoseph Yu
authored andcommitted
Explicit QIcon for Katana/PyQt (v2.3.4+wwfx.1.0.0)
1 parent a2f0e40 commit ffac58c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

python/tk_multi_publish2/progress/progress_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def process_log_message(self, message, status, action):
192192
item.setText(0, message)
193193

194194
if icon:
195-
item.setIcon(0, icon)
195+
item.setIcon(0, QtGui.QIcon(icon))
196196

197197
if self._logging_parent_item:
198198
self._logging_parent_item.addChild(item)
@@ -278,11 +278,11 @@ def push(self, text, icon=None, publish_instance=None):
278278
self._logging_parent_item.addChild(item)
279279

280280
if icon:
281-
item.setIcon(0, icon)
281+
item.setIcon(0, QtGui.QIcon(icon))
282282
self._icon_label.setPixmap(icon)
283283
elif self._current_phase:
284284
std_icon = self._icon_lookup[self._current_phase]
285-
item.setIcon(0, std_icon)
285+
item.setIcon(0, QtGui.QIcon(std_icon))
286286
self._icon_label.setPixmap(std_icon)
287287

288288
self._progress_details.log_tree.setCurrentItem(item)

python/tk_multi_publish2/publish_tree_widget/tree_node_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def double_clicked(self, column):
183183
else:
184184
icon = self._expanded_icon
185185

186-
self._embedded_widget.expand_indicator.setIcon(icon)
186+
self._embedded_widget.expand_indicator.setIcon(QtGui.QIcon(icon))
187187

188188
def _check_expand_state(self):
189189
"""
@@ -196,7 +196,7 @@ def _check_expand_state(self):
196196
else:
197197
icon = self._collapsed_icon
198198

199-
self._embedded_widget.expand_indicator.setIcon(icon)
199+
self._embedded_widget.expand_indicator.setIcon(QtGui.QIcon(icon))
200200

201201

202202
class TopLevelTreeNodeItem(TreeNodeItem):

0 commit comments

Comments
 (0)