From kde-panel-devel Sat Nov 24 23:00:45 2007 From: "Aaron J. Seigo" Date: Sat, 24 Nov 2007 23:00:45 +0000 To: kde-panel-devel Subject: Re: [Panel-devel] a few new rules for applets Message-Id: <200711241600.46035.aseigo () kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=119594530817845 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2025679465==" --===============2025679465== Content-Type: multipart/signed; boundary="nextPart1259961.0ACrWcfvqY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1259961.0ACrWcfvqY Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 24 November 2007, Percy Leonhardt wrote: > On Saturday 24 November 2007, Aaron J. Seigo wrote: > > - never re-implement contentSizeHint unless there is a really, really > > good reason to do so. because unless the applet is extra careful, it wi= ll > > break free-resizing. instead, set a default size in the constructor or = in > > init() and the adjust contents to the size of the applet. > > As I already mentioned the network applet is resizing itself when the user > changes the detail level with the mouse wheel. Is there a chance to keep > this functionality together with free-resizing? Anything I can do to make > both features work together? yep. just call resize() based on the current size rather than reimplement=20 contentSizeHint(). > I thought the free-resizing (by using the handle) is more like rotating a= nd > zooming so that a certain zoom-level gets stored for the applet. This it's not a zoom level. never has been, never was planned on being. it's how= =20 big in pixels the user or device (or containment or layout or..) wants/need= s=20 the object to be. resolution independant interfaces. what does need to happen (which isn't right now) is the applet handle needs= to=20 be fixed to respect the minimumSizeHint =2D-=20 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 --nextPart1259961.0ACrWcfvqY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHSK0e1rcusafx20MRAmoyAKCFPLXpxMjMbSeDACNzK0WFDARvAwCglzcz j8ZoNQ8XDmLreN+1Hhf3Lpw= =w6fH -----END PGP SIGNATURE----- --nextPart1259961.0ACrWcfvqY-- --===============2025679465== 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 --===============2025679465==--