From cbb1e0ea45975b60d394acafb2296dc70ec91d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 10 Nov 2014 07:33:49 +0100 Subject: HACK for scalable icons in QListView on Windows --- gui/widgets/PageContainer_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui/widgets') 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(); -- cgit v1.2.3