Extender api review, round 2

Rob Scheepmaker r.scheepmaker at student.utwente.nl
Tue Jul 29 18:54:22 CEST 2008


On Tuesday 29 July 2008 18:38:55 Aaron J. Seigo wrote:
> in Extender i found myself thinking "maybe it would feel more natural if
> instead of Extender::extenderItems it was just Extender::items..." and then
> i got to the signals which are just itemAdded and itemRemoved =) so perhaps
> change all the "extenderItem"s to "item"s in Extender's API.

that makes sense... and it's a lot shorter :)

> ExtenderItem::setExpirationTimeWhenAttached could be
> ExtenderItem::setAutoExpireDelay? setAutoExpireTime?

I think I'll go for setAutoExpireDelay.
>
> ExtenderItem::collapsed should be isCollapsed

true.

> i like how the impact on Applet is now so minimal, clean and obvious! =)

me too, this is actually a lot better then it was.

> as for multiple extenders per-Applet, let's just stick with one for now i
> think. we can learn how they get used and move on from there.
>
> one final note, adding a new virtual to Applet makes libplasma BIC... hm..
> i'll start a new thread about that issue actually...

Hmm, I was under the impression that bic would only be guaranteed after 4.2?

> > Oh and another question, does anybody know if there's any way to
> > determine if a top level QWidget is in front of another top level
> > QWidget? Because to make drag & drop reliable, there really should be a
> > way to determine which plasma view is on top at a specific location. And
> > QApplication::topLevelAt won't do, since while dragging, there might be a
> > graphicsView under the mouse cursor when dragging from view to view.
>
> KWindowSystem::stackingOrder gives you the current window stacking order.

Excellent, thanks :)


More information about the Plasma-devel mailing list