mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Merge branch 'develop' into enhancement/1297-product-base-types-creation-and-creator-plugins
This commit is contained in:
commit
f5ac5c2cfb
40 changed files with 1064 additions and 264 deletions
|
|
@ -1147,6 +1147,8 @@ class LogItemMessage(QtWidgets.QTextEdit):
|
|||
QtWidgets.QSizePolicy.Preferred,
|
||||
QtWidgets.QSizePolicy.Maximum
|
||||
)
|
||||
self.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
||||
self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
||||
document = self.document()
|
||||
document.documentLayout().documentSizeChanged.connect(
|
||||
self._adjust_minimum_size
|
||||
|
|
|
|||
|
|
@ -146,19 +146,19 @@ class TasksModel(QtGui.QStandardItemModel):
|
|||
self._controller.get_current_project_name()
|
||||
)
|
||||
}
|
||||
icon_name_by_task_name = {}
|
||||
type_item_by_task_name = {}
|
||||
for task_items in task_items_by_folder_path.values():
|
||||
for task_item in task_items:
|
||||
task_name = task_item.name
|
||||
if (
|
||||
task_name not in new_task_names
|
||||
or task_name in icon_name_by_task_name
|
||||
or task_name in type_item_by_task_name
|
||||
):
|
||||
continue
|
||||
task_type_name = task_item.task_type
|
||||
task_type_item = task_type_items.get(task_type_name)
|
||||
if task_type_item:
|
||||
icon_name_by_task_name[task_name] = task_type_item.icon
|
||||
type_item_by_task_name[task_name] = task_type_item
|
||||
|
||||
for task_name in new_task_names:
|
||||
item = self._items_by_name.get(task_name)
|
||||
|
|
@ -171,13 +171,18 @@ class TasksModel(QtGui.QStandardItemModel):
|
|||
if not task_name:
|
||||
continue
|
||||
|
||||
icon_name = icon_name_by_task_name.get(task_name)
|
||||
icon = None
|
||||
icon = icon_name = icon_color = None
|
||||
task_type_item = type_item_by_task_name.get(task_name)
|
||||
if task_type_item is not None:
|
||||
icon_name = task_type_item.icon
|
||||
icon_color = task_type_item.color
|
||||
if icon_name:
|
||||
if not icon_color:
|
||||
icon_color = get_default_entity_icon_color()
|
||||
icon = get_qt_icon({
|
||||
"type": "material-symbols",
|
||||
"name": icon_name,
|
||||
"color": get_default_entity_icon_color(),
|
||||
"color": icon_color,
|
||||
})
|
||||
if icon is None:
|
||||
icon = default_icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue