show project name on group instead of items

This commit is contained in:
Jakub Trllo 2024-11-28 12:12:04 +01:00
parent 5c115ce166
commit 2eb97b972e

View file

@ -292,8 +292,6 @@ class InventoryModel(QtGui.QStandardItemModel):
item.setData(version_label, VERSION_LABEL_ROLE)
item.setData(container_item.loader_name, LOADER_NAME_ROLE)
item.setData(container_item.object_name, OBJECT_NAME_ROLE)
item.setData(container_item.project_name,
PROJECT_NAME_ROLE)
item.setData(True, IS_CONTAINER_ITEM_ROLE)
item.setData(unique_name, ITEM_UNIQUE_NAME_ROLE)
container_model_items.append(item)
@ -323,6 +321,7 @@ class InventoryModel(QtGui.QStandardItemModel):
group_item.setData(status_short, STATUS_SHORT_ROLE)
group_item.setData(status_color, STATUS_COLOR_ROLE)
group_item.setData(status_icon, STATUS_ICON_ROLE)
group_item.setData(project_name, PROJECT_NAME_ROLE)
group_item.setData(
active_site_progress, ACTIVE_SITE_PROGRESS_ROLE