Add workaround for icon size in HiDPI environment
Making workaround for bug https://bugs.kde.org/show_bug.cgi?id=462307.
As stated in discussion, QItemDelegate
ignores devicePixelRatio
for QPixmap
. However, this seems to be not the case for QIcon
, which is drawn correctly.
So wrapping QPixmap
into QIcon
to fix rendering.
See preview (left pane without previews, right pane with previews).
Before | After |
---|---|