[Panel-devel] Separate QGraphicsItems for applet border/background and content?

Aaron J. Seigo aseigo at kde.org
Sat Sep 1 02:05:06 CEST 2007


On Friday 31 August 2007, Robert Knight wrote:
> > they resize the container if the minimum size required isn't met. we
> > don't do that in plasma currently.
>
> Okay, I follow.  I have not found a need to do that yet.
>
> > ah, i thought you were -also- unhappy with the fact that the default
> > implementation of contentSize() returns layout()->sizeHint().
>
> Yes I am.  What I have locally is that contentSize() is non-virtual
> and returns geometry().size() minus the size of the border.  I added a
> new virtual contentSizeHint() method which applets re-implement to
> return an ideal size for their content.

ok, i can live with that

> There were various references to contentSize() in the Applet code.
> Most of them required the actual content size, so I left them alone,

i thought you made it non-virtual?


-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070831/1728c61c/attachment.pgp 


More information about the Panel-devel mailing list