Correct placement when detaching extenderItems.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876615
This commit is contained in:
Rob Scheepmaker 2008-10-27 17:16:41 +00:00
parent eb62f23c04
commit a00b42cf69

View File

@ -699,7 +699,7 @@ void ExtenderItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
if (containment->sceneBoundingRect().contains(mousePos)) {
Applet *applet = containment->addApplet("internal:extender",
QVariantList(),
QRectF(mousePos, size()));
QRectF(containment->mapFromScene(mousePos), size()));
setExtender(applet->d->extender);
}
}