--===============0717888764== Content-Type: multipart/signed; boundary="nextPart4840660.nEn3IdX55p"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4840660.nEn3IdX55p Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Tuesday, August 17, 2010, Will Stephenson wrote: > If the hide buttons would be qwidgets, but we want to have the right > themeing, would this make them Plasma::Toolbuttons drawn on separate Views > as QWidgets? it can probably be a lot simpler than that even... we have a themed QToolButton in libplasmagenericshell called ToolButton. we= =20 can (and do) use those as regular ol' QWidgets. then there is PanelView in desktop/shell/panelview.h which is a QWidget as= =20 well, and the PanelView class does the hide/show management. so when it is set to manual hiding, PanelView could create a ToolButton and= =20 place it as a child QWidget. it could set a contents margin on itself to ma= ke=20 room for it, and then the containment will naturally be adjusted to fit tha= t.=20 some of the calculations for things like "maximize panel" may require some= =20 adjustments as a result, unless they are already based on contentsRect()=20 rather than just size(). so in this case it's really just typical QWidget based development and ther= e=20 isn't really any special Plasma / QGraphicsView voodoo needed :) =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 Qt Development Frameworks --nextPart4840660.nEn3IdX55p Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEABECAAYFAkxsDcQACgkQ1rcusafx20N6HgCggT3qd0sEzo3099Jf5R0VUPTb GGcAoItIoExG9hU4ELmFqBBjDFxdAQMO =Uzcr -----END PGP SIGNATURE----- --nextPart4840660.nEn3IdX55p-- --===============0717888764== 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 --===============0717888764==--