plasmoid geometry event
Aaron J. Seigo
aseigo at kde.org
Mon May 26 17:56:26 CEST 2008
On Monday 26 May 2008, Toussis Manolis wrote:
> Please clear up for me the following:
> 1. constraintsEvent is the only method I need to control the behaviour of
> my applet on geometry/constraints updates?
correct; it's one of the simplifications we've taken.
> 2. contentsRect() is updated before or after the constraintsEvent slot on a
> resize? what about geometry()?
before.
> 3. it is wrong to set size inside the constraintsEvent slot?
no, but if you do ask yourself *why* you are doing it. there are two things to
be aware of:
* setting the size in constraintsEvent means overriding the user's wishes.
* if you reset the size in constraintsEvent .. you will get another call to
constraintsEvent. so be careful not to create infinite loops.
> 4. updateGeometry were it is supposed to be called? Why it is needed inside
> constraintsEvent slot?
it shouldn't be needed at all; updateGeometry is really only supposed to be
needed when you change the sizeHint (not the geometry directly) internally.
> 5. setMinimumSize/setMaximumSize are the only ones to modify to control the
> geometry ? setSize is forbidden?
resize, not setSize, and no, you can use that too. just be careful with the
above.
--
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: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080526/ec4569cb/attachment.pgp
More information about the Panel-devel
mailing list