[Panel-devel] Resizing and contentsize

Aaron J. Seigo aseigo at kde.org
Sat Nov 3 01:43:02 CET 2007


On Friday 02 November 2007, Sven Burmeister wrote:
> Is it the best way to calculate what size the content needs, then update
> the sizeHint, call prepareGeometryChange and after that updateGeometry? Or
> should I call update() as well?

just call updateGeometry and ensure your contentSizeHint is correct.

> I have set the sizeHint to the width of the text + 2*margin, so the area
> within the plasmoid should have that width. Yet if I place the text within
> that area and start at x = margin there is no margin on the right of the
> text. That happens to the digital-clock as well, i.e. there is more space
> on the left than on the right and I do not know why.

i'll try and take a look at it later.

-- 
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/20071102/2e41d9d8/attachment-0001.pgp 


More information about the Panel-devel mailing list