mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 18:09:59 +03:00
HACK for scalable icons in QListView on Windows
This commit is contained in:
parent
ec4805cce8
commit
cbb1e0ea45
1 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,8 @@ public:
|
|||
QIcon icon = m_pages.at(index.row())->icon();
|
||||
if (icon.isNull())
|
||||
icon = m_emptyIcon;
|
||||
return icon;
|
||||
// HACK: fixes icon stretching on windows. TODO: report Qt bug for this
|
||||
return QIcon(icon.pixmap(QSize(24,24)));
|
||||
}
|
||||
}
|
||||
return QVariant();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue