HACK for scalable icons in QListView on Windows

This commit is contained in:
Petr Mrázek 2014-11-10 07:33:49 +01:00
parent ec4805cce8
commit cbb1e0ea45

View File

@ -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();