Default Desktop and layout

Petri Damstén petri.damsten at gmail.com
Mon Aug 25 13:24:26 CEST 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080825/18bd6d9f/attachment.sig 


More information about the Plasma-devel mailing list