HACK for scalable icons in QListView on Windows
This commit is contained in:
parent
ec4805cce8
commit
cbb1e0ea45
@ -63,7 +63,8 @@ public:
|
|||||||
QIcon icon = m_pages.at(index.row())->icon();
|
QIcon icon = m_pages.at(index.row())->icon();
|
||||||
if (icon.isNull())
|
if (icon.isNull())
|
||||||
icon = m_emptyIcon;
|
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();
|
return QVariant();
|
||||||
|
Loading…
Reference in New Issue
Block a user