From kde-panel-devel Tue Feb 14 17:32:37 2012 From: "Aaron J. Seigo" Date: Tue, 14 Feb 2012 17:32:37 +0000 To: kde-panel-devel Subject: Re: constraints and size hints Message-Id: <2548968.3d05TM4JGK () freedom> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=132924078107037 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============6614058934125218963==" --===============6614058934125218963== Content-Type: multipart/signed; boundary="nextPart5546988.tqBJJ2OHn9"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7Bit --nextPart5546988.tqBJJ2OHn9 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Tuesday, February 14, 2012 10:45:50 Ignat Semenov wrote: > a)Do I need to set the size in constraintsEvent for the FormFactor change? yes; the size hint is just a hint. > b)Do I need to set a size in sizeHint if constraintsEvent already has a > setMinimumSize? it's just a hint, not a hard size. > c)Why Is setMinimumSize required? Is it because the panel > is trying to shrink the widget horizontally to the very minimum (if in a > horizontal panel)? pretty much. what an applet needs is a minimum size (which change in relation to the height in Horizontal and width in Vertical form factors) and a prefered size hint. those two things tell the panel what is best (prefered size hint) and what is required (minimum). from there it figures out the best compromise possible. > Now for some reason, the same code does not make Kickoff, the Tabbed version > (which inherits popupApplet) behave identically, remaining narrow and tall > in the panel. What is worse, it does not repaint on panel resize! There whe it is an icon, it behaves just fine here. do you eman when the icon is not being shown but instead the whole tab widget is put into a panel? -- Aaron J. Seigo --nextPart5546988.tqBJJ2OHn9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEABECAAYFAk86mrUACgkQ1rcusafx20O8fwCfWU03V5GkHPkjAbb3ucIPvCAC zRgAoKLxT1KtzdCk5SJX1HJii1GvkwYv =UaUi -----END PGP SIGNATURE----- --nextPart5546988.tqBJJ2OHn9-- --===============6614058934125218963== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============6614058934125218963==--