[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: [PATCH] panel placement at the center (or whatever) of the screen
From:       Marco Martin <notmart () gmail ! com>
Date:       2008-04-05 11:11:01
Message-ID: 200804051311.02001.notmart () gmail ! com
[Download RAW message or body]

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

_______________________________________________
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