From 3313101e56d4f2721403474c1894d87c5ec0a088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Borgese?= Date: Sat, 27 Oct 2007 12:37:05 +0000 Subject: [PATCH] Fix applet position when droping it from appletbrowser on a containment that doesn't start at (0,0) on the scene. Typically, the second screen on a dual screen configuration. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729926 --- containment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containment.cpp b/containment.cpp index 190d32e20..7e56d8d6c 100644 --- a/containment.cpp +++ b/containment.cpp @@ -483,7 +483,7 @@ void Containment::dropEvent(QGraphicsSceneDragDropEvent *event) if (event->mimeData()->hasFormat(mimetype) && scene()) { QString plasmoidName; plasmoidName = event->mimeData()->data(mimetype); - QRectF geom(event->scenePos(), QSize(0, 0)); + QRectF geom(mapFromScene(event->scenePos()), QSize(0, 0)); addApplet(plasmoidName, QVariantList(), 0, geom); event->acceptProposedAction(); } else if (KUrl::List::canDecode(event->mimeData())) {