[PATCH] Autohiding panels

Andre Duffeck andre at duffeck.de
Sat Apr 5 20:04:07 CEST 2008


Am Samstag 05 April 2008 15:09:22 schrieb Riccardo Iaconelli:
> On Friday 04 April 2008 16:43:00 Aaron J. Seigo wrote:
> > On Friday 04 April 2008, Andre Duffeck wrote:
> > > It's not moved pixelwise, but uses a QTimeLine to get the values.
> >
> > it probably doesn't need to be updated 25 times, of course (1000/40). it
> > should also be using Phase...
> >
> > i'll take a look at the issues you've run into (flicker, 1px area) and
> > see if i can come up with anything...
>
> I agree that it should use phase. From a quick look and not applying the
> patch I *guess* that the flicker is caused by the panel resizing itself. I
> think it should just move itself out of the way under the screen, at least
> if there isn't any other screen (with xinerama) on the side it's going to.

There's no resizing at all. The PanelView is now a QWidget, wich contains a 
Plasma::View as a child widget. The child is just moved away inside the 
PanelView on panel hide while the PanelView stays where it is and the rest of 
the Widget is masked out. So there's no problem with running into other 
screens as well.

Andre


More information about the Panel-devel mailing list