[Panel-devel] Order of called methods when resizing
Aaron J. Seigo
aseigo at kde.org
Mon Dec 17 18:35:55 CET 2007
On Monday 17 December 2007, Sven Burmeister wrote:
> So to put it simple: If constraintsUpdated() does not get called as the
> first function of an applet after a resize happened, do I have to handle it
> or would that be a bug because constraintsUpdated() must always be the
> first function to call if the applet should react to some changes?
there is no guaranteed order to constraintsUpdated being called right now. i
suppose the issue for you is that your contentSizeHint isn't recalculated to
the new size and is therefore resetting the size()? hm. interesting problem
indeed. the easy solution is to put a flushUpdatedConstriants() call in
Applet::setGeometry, but that would somewhat defeat the constraints updates
compression.
--
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/20071217/ab27f1ea/attachment.pgp
More information about the Panel-devel
mailing list