[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: [Panel-devel] Panel contentSize
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2007-11-26 19:11:50
Message-ID: 200711261211.51232.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Monday 26 November 2007, Sébastien Le Ray wrote:
> > what are you wanting to do with the returned value of contentSize()
> > exactly?
>
> Trying to fit an applet to the inner size of the panel (to avoid the
> hardcoded 48 value everywhere)... Should I use the layout margins ?
no, you should be using Applet::size(). don't try and figure out how big your
applet should be based on the panel, etc. let the layout manage that for you
and adjust your content accordingly to whatever size your applet is. there is
the ability to set expanding direction preferenes, minimum size hints and
there is also a size change constraint that results in calls to
constraintsUpdated as well.
those things should give you all the information you need.
--
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
[Attachment #5 (application/pgp-signature)]
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic