Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed setIcon with pixmap error #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# ---- ignore special files written during config setup
tk-metadata

# Byte-compiled / optimized / DLL files
*.py[cod]

# C extensions
Expand Down
2 changes: 1 addition & 1 deletion python/tk_multi_workfiles/step_list_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _ensure_widgets_for_entity_type(self, entity_type):
# color otherwise it is too bright.
color = [int(x) for x in step["color"].split(",")] + [200]
pixmap.fill(QtGui.QColor(*color))
widget.setIcon(pixmap)
widget.setIcon(QtGui.QIcon(pixmap))
# Turn it on if it was in the step saved filters
# We do this before the toggled signal is connected to not emit
# un-wanted signals.
Expand Down