]> cloud.milkyroute.net Git - dolphin.git/commit
[KStandardItemListWidget] Request the pixmap size we want and let the icon loader...
authorKai Uwe Broulik <kde@privat.broulik.de>
Mon, 16 Sep 2019 06:52:05 +0000 (08:52 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Mon, 16 Sep 2019 06:52:05 +0000 (08:52 +0200)
commitcef2c67613ef07a350d18f690b3b5960b9dfda12
tree7e96d66b6c93b6e42b3078a08a45cc2178e11237
parentcb0f6f4d9bf55f072ce90653d448af59c0edf680
[KStandardItemListWidget] Request the pixmap size we want and let the icon loader scale it

I noticed that depending on the configured icon size it would spend a significant amount of time in KPixmapModifier::scale.
I don't see a point in requesting a fixed icon size and then scale it down manually as opposed to having the KIconLoader do the scaling for us.
Especially for SVGs it could then even serve us a properly rendered SVG for this size rather than a scaled down pixmap version.

Differential Revision: https://phabricator.kde.org/D22116
src/kitemviews/kstandarditemlistwidget.cpp