[Panel-devel] patch: icon size

M. Costa m.costacano at gmail.com
Tue Aug 7 22:27:52 CEST 2007


This patch removes the need of a QStyleOptionGraphicsItem to calculate the 
geometry of a "not painted yet" Icon. With it the following makeSomething 
works

Icon *icon = new Icon("some text", this);
makeSomething(icon->geometry()); // ok

Now the geometry returns 140.8x140.8 witch is the 128*1.1 set in the 
constructor.

Why Icon::size() always returns -1,-1? 
Why are there size() geometry() and boundingRect()?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libplasma-widgets.iconSize.patch
Type: text/x-diff
Size: 7850 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070807/62ae9530/attachment.bin 


More information about the Panel-devel mailing list