[PATCH] panel placement at the center (or whatever) of the screen
Marco Martin
notmart at gmail.com
Fri Apr 4 13:05:09 CEST 2008
On Thursday 03 April 2008, Aaron J. Seigo wrote:
> On Thursday 03 April 2008, Marco Martin wrote:
> > On Wednesday 02 April 2008, Marco Martin wrote:
> > > the real problem now is that when i set the geometry of the containment
> > > for the first time it doesn't seem to work (does it need a fully
> > > constructed view to work?) so the left border is not set, and is set
> > > only when i manually change the geometry of the panel.
> > > also when i change the containment geometry in updatePanelGeometry it
> > > triggers updatePanelGeometry again another time, it feels a little
> > > bleach, but don't know how to do it otherwise...
> >
> > Cleaned up a little bit, bit more robust and works with different
> > alignments. there is still the problem that the svg panel doesn't load
> > the right borders the first time is starts :(
>
> i just had a brainwave ;)
>
> why not use the QWidget* that gets passed into paintInterface to figure out
> the geometry?
uff, i think i start to get annoying but...
uhm, what widget?
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, so
i will get too little margins and similar to previous problem it is necesary
to resize the panel with the config dialog to get the layout margins updated
right. really, i can't figure out how to unbreak this thing :(
> the downside here is that in PanelContainment figuring out margins when
> they change would have to be moved to the paint event ... but still, that
> resolves the *whole* issue, doesn't it?
>
> some other comments/suggestions:
>
> * don't new the KConfigGroups, just use them by value
>
> * don't bother hanging on to m_mainConfig, it's not used by anything except
> for the first set up
ok
Cheers,
Marco Martin
More information about the Panel-devel
mailing list