[KStandardItemListWidget] Round to icon size before applying scaling

Authored by broulik on Sep 5 2018, 10:24 AM.

Description

[KStandardItemListWidget] Round to icon size before applying scaling

Otherwise for 22px icons on high dpi we will request either the wrong icons or scale them needlessly.
Dolphin requests a pixmap of 22px, this is then multiplied by dpr resulting in 44 which isn't a valid icon size (only 32 or 48 are).
Moreover, we will also hit the path where it will scale the pixmap to a proper icon size resulting in blurry icons
(and a performance penalty).

Differential Revision: https://phabricator.kde.org/D15260

Details

Committed
broulikSep 5 2018, 10:24 AM
Differential Revision
D15260: [KStandardItemListWidget] Round to icon size before applying scaling
Parents
R318:5f252da8b58e: Correctly save behaviourOnLaunch
Branches
Unknown
Tags
Unknown