On Monday 25 August 2008 13:19:22 Alex Merry wrote:
> On Monday 25 August 2008 09:28:09 Petri Damstén wrote:
> > + workingGeom.translate(-desktop->screenGeometry(screen()).topLeft());
>
> This is the same as workingGeom.setTopLeft(QPointF(0,0)).

I thought that availableGeometry != screenGeometry so it's not always 0,0.

> If you actually want it in containment co-ordinates, you should probably
> use mapFromScene(), and you need to do it even if there's no associated
> screen:

Geometry for containment can be 2571,0,1280,1024 when screenGeometry for it is 
0,0,1280,1024, so mapFromScene won't return correct value in both cases?

Petri

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to