mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:38:16 +00:00
UI: *ListModel: Use QIcon, not QPixmap
This commit is contained in:
parent
46c9c0ccb2
commit
2c88b499f4
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user