Add sizeForLabels icon size to Units

This commit is contained in:
Noah Davis 2021-03-14 10:24:36 -04:00 committed by Nate Graham
parent a4e4156a47
commit 1b67e0045e

View File

@ -114,6 +114,8 @@ void Units::iconLoaderSettingsChanged()
m_iconSizes->insert(QStringLiteral("large"), devicePixelIconSize(KIconLoader::SizeLarge));
m_iconSizes->insert(QStringLiteral("huge"), devicePixelIconSize(KIconLoader::SizeHuge));
m_iconSizes->insert(QStringLiteral("enormous"), devicePixelIconSize(KIconLoader::SizeEnormous));
// gridUnit is always the font height here
m_iconSizes->insert(QStringLiteral("sizeForLabels"), devicePixelIconSize(roundToIconSize(m_gridUnit)));
m_iconSizeHints->insert(QStringLiteral("panel"), devicePixelIconSize(KIconLoader::global()->currentSize(KIconLoader::Panel)));
m_iconSizeHints->insert(QStringLiteral("desktop"), devicePixelIconSize(KIconLoader::global()->currentSize(KIconLoader::Desktop)));