Commit 6985bc77 authored by Michael Pyne's avatar Michael Pyne

playlistbox: Do not hardcode icon sizes in playlist item icon.

parent f07d305e
......@@ -743,8 +743,12 @@ void PlaylistBox::Item::init()
list->setupItem(this);
int iconSize = list->viewModeIndex() == 0 ? 32 : 16;
setIcon(0, SmallIcon(m_iconName, iconSize));
const auto iconLoader = KIconLoader::global();
const KIconLoader::Group iconGroup =
list->viewModeIndex() == 0
? KIconLoader::Desktop
: KIconLoader::Toolbar;
setIcon(0, iconLoader->loadIcon(m_iconName, iconGroup));
list->addNameToDict(m_text);
if(m_playlist) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment