|
4 | 4 | from functools import partial |
5 | 5 |
|
6 | 6 | from ...vendor.Qt import QtWidgets, QtCore |
7 | | -from ...vendor import qtawesome as qta |
| 7 | +from ...vendor import qtawesome |
8 | 8 | from ... import io, api, style |
9 | 9 |
|
10 | 10 | from .. import lib as tools_lib |
@@ -72,45 +72,45 @@ def _on_update_to_latest(items): |
72 | 72 | api.update(item, -1) |
73 | 73 | self.data_changed.emit() |
74 | 74 |
|
75 | | - update_icon = qta.icon("fa.angle-double-up", color=DEFAULT_COLOR) |
| 75 | + update_icon = qtawesome.icon("fa.angle-double-up", color=DEFAULT_COLOR) |
76 | 76 | updatetolatest_action = QtWidgets.QAction(update_icon, |
77 | 77 | "Update to latest", |
78 | 78 | menu) |
79 | 79 | updatetolatest_action.triggered.connect( |
80 | 80 | lambda: _on_update_to_latest(items)) |
81 | 81 |
|
82 | 82 | # set version |
83 | | - set_version_icon = qta.icon("fa.hashtag", color=DEFAULT_COLOR) |
| 83 | + set_version_icon = qtawesome.icon("fa.hashtag", color=DEFAULT_COLOR) |
84 | 84 | set_version_action = QtWidgets.QAction(set_version_icon, |
85 | 85 | "Set version", |
86 | 86 | menu) |
87 | 87 | set_version_action.triggered.connect( |
88 | 88 | lambda: self.show_version_dialog(items)) |
89 | 89 |
|
90 | 90 | # switch asset |
91 | | - switch_asset_icon = qta.icon("fa.sitemap", color=DEFAULT_COLOR) |
| 91 | + switch_asset_icon = qtawesome.icon("fa.sitemap", color=DEFAULT_COLOR) |
92 | 92 | switch_asset_action = QtWidgets.QAction(switch_asset_icon, |
93 | 93 | "Switch Asset", |
94 | 94 | menu) |
95 | 95 | switch_asset_action.triggered.connect( |
96 | 96 | lambda: self.show_switch_dialog(items)) |
97 | 97 |
|
98 | 98 | # remove |
99 | | - remove_icon = qta.icon("fa.remove", color=DEFAULT_COLOR) |
| 99 | + remove_icon = qtawesome.icon("fa.remove", color=DEFAULT_COLOR) |
100 | 100 | remove_action = QtWidgets.QAction(remove_icon, "Remove items", menu) |
101 | 101 | remove_action.triggered.connect( |
102 | 102 | lambda: self.show_remove_warning_dialog(items)) |
103 | 103 |
|
104 | 104 | # go back to flat view |
105 | 105 | if self._hierarchy_view: |
106 | | - back_to_flat_icon = qta.icon("fa.list", color=DEFAULT_COLOR) |
| 106 | + back_to_flat_icon = qtawesome.icon("fa.list", color=DEFAULT_COLOR) |
107 | 107 | back_to_flat_action = QtWidgets.QAction(back_to_flat_icon, |
108 | 108 | "Back to Full-View", |
109 | 109 | menu) |
110 | 110 | back_to_flat_action.triggered.connect(self.leave_hierarchy) |
111 | 111 |
|
112 | 112 | # send items to hierarchy view |
113 | | - enter_hierarchy_icon = qta.icon("fa.indent", color="#d8d8d8") |
| 113 | + enter_hierarchy_icon = qtawesome.icon("fa.indent", color="#d8d8d8") |
114 | 114 | enter_hierarchy_action = QtWidgets.QAction(enter_hierarchy_icon, |
115 | 115 | "Cherry-Pick (Hierarchy)", |
116 | 116 | menu) |
@@ -148,7 +148,7 @@ def _on_update_to_latest(items): |
148 | 148 | for action in custom_actions: |
149 | 149 |
|
150 | 150 | color = action.color or DEFAULT_COLOR |
151 | | - icon = qta.icon("fa.%s" % action.icon, color=color) |
| 151 | + icon = qtawesome.icon("fa.%s" % action.icon, color=color) |
152 | 152 | action_item = QtWidgets.QAction(icon, action.label, submenu) |
153 | 153 | action_item.triggered.connect( |
154 | 154 | partial(self.process_custom_action, action, items)) |
@@ -490,7 +490,7 @@ def __init__(self, parent=None, items=None): |
490 | 490 | subset_layout = QtWidgets.QVBoxLayout() |
491 | 491 | repre_layout = QtWidgets.QVBoxLayout() |
492 | 492 |
|
493 | | - accept_icon = qta.icon("fa.check", color="white") |
| 493 | + accept_icon = qtawesome.icon("fa.check", color="white") |
494 | 494 | accept_btn = QtWidgets.QPushButton() |
495 | 495 | accept_btn.setIcon(accept_icon) |
496 | 496 | accept_btn.setFixedWidth(24) |
@@ -846,7 +846,7 @@ def __init__(self, parent=None): |
846 | 846 | outdated_only.setToolTip("Show outdated files only") |
847 | 847 | outdated_only.setChecked(False) |
848 | 848 |
|
849 | | - icon = qta.icon("fa.refresh", color="white") |
| 849 | + icon = qtawesome.icon("fa.refresh", color="white") |
850 | 850 | refresh_button = QtWidgets.QPushButton() |
851 | 851 | refresh_button.setIcon(icon) |
852 | 852 |
|
|
0 commit comments