fix: remove manual icon resize in ModModel
THis fixes a FIXME, now that we fixed the issue :o Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
1862f3c124
commit
ee4a829293
@ -62,11 +62,7 @@ auto ListModel::data(const QModelIndex& index, int role) const -> QVariant
|
|||||||
}
|
}
|
||||||
case Qt::DecorationRole: {
|
case Qt::DecorationRole: {
|
||||||
if (m_logoMap.contains(pack.logoName)) {
|
if (m_logoMap.contains(pack.logoName)) {
|
||||||
auto icon = m_logoMap.value(pack.logoName);
|
return m_logoMap.value(pack.logoName);
|
||||||
// FIXME: This doesn't really belong here, but Qt doesn't offer a good way right now ;(
|
|
||||||
auto icon_scaled = QIcon(icon.pixmap(48, 48).scaledToWidth(48));
|
|
||||||
|
|
||||||
return icon_scaled;
|
|
||||||
}
|
}
|
||||||
QIcon icon = APPLICATION->getThemedIcon("screenshot-placeholder");
|
QIcon icon = APPLICATION->getThemedIcon("screenshot-placeholder");
|
||||||
// un-const-ify this
|
// un-const-ify this
|
||||||
|
Loading…
Reference in New Issue
Block a user