[Panel-devel] Desktop Icons Patch
Aaron J. Seigo
aseigo at kde.org
Wed Dec 19 18:31:18 CET 2007
On Wednesday 19 December 2007, Christopher Blauvelt wrote:
> On Dec 19, 2007 8:53 AM, Aaron J. Seigo <aseigo at kde.org> wrote:
> > On Wednesday 19 December 2007, Marco Martin wrote:
> > > the minimum size of the icon is too big for the panel
> > > and the applet should have an expandingdirections 0 otherwiseit eats
> > > all the available space in a boxlayout
> >
> > this:
> >
> > setMinimumContentSize(QSize(48,78));
>
> Agreed. I've been working on a way to do this but have been unable to find
> a way to get the fontmetrics of the display. I believe it's available in
> QStyleGraphicsItem but that is not available upon creation of the widget.
it just uses the application global font. QStyleOptionGraphicsItem does not
provide a font.
> > and calculate a new width based on the height.
>
> I've added a sizeHint to the widget just for that purpose. My plan is to
> compare the sizeHint of the Widget and compare that the size constraints of
> the Applet and accomodate the Widget if it fits within the size constraints
> of the applet.
sounds good.
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071219/5dbd4e2a/attachment.pgp
More information about the Panel-devel
mailing list