Skip to content

Commit 365312d

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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
@@ -227,7 +227,7 @@ def double_clicked(self, column):
227227
else:
228228
icon = self._expanded_icon
229229

230-
self._embedded_widget.expand_indicator.setIcon(icon)
230+
self._embedded_widget.expand_indicator.setIcon(QtGui.QIcon(icon))
231231

232232
def _check_expand_state(self):
233233
"""
@@ -240,7 +240,7 @@ def _check_expand_state(self):
240240
else:
241241
icon = self._collapsed_icon
242242

243-
self._embedded_widget.expand_indicator.setIcon(icon)
243+
self._embedded_widget.expand_indicator.setIcon(QtGui.QIcon(icon))
244244

245245

246246
class TopLevelTreeNodeItem(TreeNodeItem):

0 commit comments

Comments
 (0)