use KIconLoader::global

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833354
This commit is contained in:
Aaron J. Seigo 2008-07-16 17:54:46 +00:00
parent 9fa78a4688
commit d4818afd6e

View File

@ -863,10 +863,9 @@ int AppletHandle::minimumHeight()
void AppletHandle::calculateSize()
{
KIconLoader *iconLoader = new KIconLoader();
KIconLoader *iconLoader = KIconLoader::global();
//m_iconSize = iconLoader->currentSize(KIconLoader::Small); //does not work with double sized icon
m_iconSize = iconLoader->loadIcon("transform-scale", KIconLoader::Small).width(); //workaround
delete iconLoader;
int handleHeight = minimumHeight();
int handleWidth = m_iconSize + 2 * HANDLE_MARGIN;