UI: *ListModel: Use QIcon, not QPixmap

This commit is contained in:
Nodir Temirkhodjaev 2024-01-31 12:03:33 +03:00
parent 46c9c0ccb2
commit 2c88b499f4
2 changed files with 2 additions and 2 deletions

View File

@ -146,5 +146,5 @@ QVariant AppStatModel::dataDecoration(const QModelIndex &index) const
}
const auto appPath = list().at(row);
return appInfoCache()->appIcon(appPath);
return QIcon(appInfoCache()->appIcon(appPath));
}

View File

@ -179,7 +179,7 @@ QVariant ConnBlockListModel::dataDecoration(const QModelIndex &index) const
switch (column) {
case 0:
return appInfoCache()->appIcon(connRow.appPath);
return QIcon(appInfoCache()->appIcon(connRow.appPath));
case 5:
return IconCache::icon(connIconPath(connRow));
}