[PATCH] panel placement at the center (or whatever) of the screen

Marco Martin notmart at gmail.com
Sat Apr 5 13:11:01 CEST 2008


On Friday 04 April 2008, Aaron J. Seigo wrote:
> On Friday 04 April 2008, Marco Martin wrote:
> > uhm, what widget?
>
> the third parameter in Applet::paintInterface (and Widget::paintWidget,
> QGraphicsItem::paint)
hhm, contentsrect? it always has a 0,0 position, i ought it was the 
containment rect
> > anyways, using the geometry of the view(yeah, i know, bad) retrieved in
> > paintinterface to calc the borders, the layout margins won't get updated,
>
> yes, it would require some caching of values (the widgets' geometry),
> checking them in paintInterface and if they are different recalc the
> margins.
the problem is that if i call updateborders in paintinterface, or even do a 
layout()->setMargin() with an hardcoded value it seems to have no effect on 
the layout margins, until i manually resize the panel

Cheers,
Marco Martin



More information about the Panel-devel mailing list