Skip to content

Commit 225dc72

Browse files
committed
fix: add missing winIconRole to DockCombineModel
这个问题可以修正未来 dataModel 切换到 DockItemModel 后,无应用图标的 应用不会将窗口图标作为 fallback 图标的问题. Log:
1 parent f1849bc commit 225dc72

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

panels/dock/taskmanager/dockcombinemodel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ DockCombineModel::DockCombineModel(QAbstractItemModel *major, QAbstractItemModel
2323
{TaskManager::ActionsRole, RoleCombineModel::roleNames().key(MODEL_ACTIONS)},
2424
{TaskManager::NameRole, RoleCombineModel::roleNames().key(MODEL_NAME)},
2525
{TaskManager::WinIdRole, RoleCombineModel::roleNames().key(MODEL_WINID)},
26+
{TaskManager::WinIconRole, RoleCombineModel::roleNames().key(MODEL_WINICON)},
2627
{TaskManager::WinTitleRole, RoleCombineModel::roleNames().key(MODEL_TITLE)}};
2728
}
2829

@@ -36,6 +37,7 @@ QHash<int, QByteArray> DockCombineModel::roleNames() const
3637
{TaskManager::ActionsRole, MODEL_ACTIONS},
3738
{TaskManager::NameRole, MODEL_NAME},
3839
{TaskManager::WinIdRole, MODEL_WINID},
40+
{TaskManager::WinIconRole, MODEL_WINICON},
3941
{TaskManager::WinTitleRole, MODEL_TITLE}};
4042
}
4143

0 commit comments

Comments
 (0)