diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-11-10 07:33:49 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-11-10 07:33:49 +0100 |
commit | cbb1e0ea45975b60d394acafb2296dc70ec91d24 (patch) | |
tree | 05e06d9842be8be205cc6cfbefabf3ba31e60328 /gui/widgets/PageContainer_p.h | |
parent | ec4805cce8ee252989f62a70b5672f93f07af7ec (diff) | |
download | MultiMC-cbb1e0ea45975b60d394acafb2296dc70ec91d24.tar MultiMC-cbb1e0ea45975b60d394acafb2296dc70ec91d24.tar.gz MultiMC-cbb1e0ea45975b60d394acafb2296dc70ec91d24.tar.lz MultiMC-cbb1e0ea45975b60d394acafb2296dc70ec91d24.tar.xz MultiMC-cbb1e0ea45975b60d394acafb2296dc70ec91d24.zip |
HACK for scalable icons in QListView on Windows
Diffstat (limited to 'gui/widgets/PageContainer_p.h')
-rw-r--r-- | gui/widgets/PageContainer_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/widgets/PageContainer_p.h b/gui/widgets/PageContainer_p.h index 329a3916..1d1809dd 100644 --- a/gui/widgets/PageContainer_p.h +++ b/gui/widgets/PageContainer_p.h @@ -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(); |