[Panel-devel] [PATCH] again on icon resize
Marco Martin
notmart at gmail.com
Sat Dec 22 21:22:10 CET 2007
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::Desktop)))
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
Cheers,
Marco Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icon_zoom5.diff
Type: text/x-diff
Size: 9633 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071222/2599e5ec/attachment.bin
More information about the Panel-devel
mailing list