[Panel-devel] [PATCH] again on icon resize

Marco Martin notmart at gmail.com
Sun Dec 23 11:53:43 CET 2007


On Saturday 22 December 2007, Marco Martin wrote:
> Hi all,
> this is my third attempt to make the icon resize working,
> the main concept is the method sizeFromIconSize()
> with that you ask "i want and icon 48 pixel wide, what is the size of the
> widget?" so an applet has only to set for example
> setMinimumContentSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Deskto
>p))) note also that there is a new displaySizeHint in Icon::private that
> works quite different from the other one: because as talked with aaron
> before, after committing that, that method will gonna be thrown away,
> together with calculatesize and seticonsize
> since it seems to work fairly well and doesn't seem to break existing
> applets, if there aren't particular complaints i'm gonna to commit it
> tomorrow
committed, now i think it would make sense to use 
setMinimumContentSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Desktop)))
also for the other applets that use the icon, like kickoff and (maybe?) the 
lock/logout

Cheers,
Marco Martin




More information about the Panel-devel mailing list