--===============1701764288== Content-Type: multipart/signed; boundary="nextPart4265702.vkG6lc2Xce"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4265702.vkG6lc2Xce Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 31 Aug 2007, Robert Knight wrote: > > 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. Makes sense to me. I was never entirely happy with contentSize()=20 because it doesn't provide a way of forcing constraints on the applet=20 easily. At the time, I just wanted a way for the applet not to care=20 about the border - they were all implementing boundingRect(), which=20 meant they couldn't easily request or demand a certain size for the=20 contents if Applet was drawing a background with a border. If I'd thought about it, I'd have gone this route in the first place. Alex =2D-=20 KDE: http://www.kde.org Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org --nextPart4265702.vkG6lc2Xce Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBG2J+IBRauKLutZ9ARAux+AJ9njVMM1NhiJhgMRqn74YlapCu4WgCgx8Ri tCiASr5gYiZmmu0eU6Vj+Q0= =jRkr -----END PGP SIGNATURE----- --nextPart4265702.vkG6lc2Xce-- --===============1701764288== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Panel-devel mailing list Panel-devel@kde.org https://mail.kde.org/mailman/listinfo/panel-devel --===============1701764288==--