From cd701724cbc86c73c678a74648faa9200bec3102 Mon Sep 17 00:00:00 2001 From: Siraj Razick Date: Wed, 6 Jun 2007 06:09:42 +0000 Subject: [PATCH] icon apears on the droped pos not topleft coner svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672121 --- corona.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/corona.cpp b/corona.cpp index 3169f0d18..f635a2b4a 100644 --- a/corona.cpp +++ b/corona.cpp @@ -249,6 +249,7 @@ void Corona::dropEvent(QGraphicsSceneDragDropEvent *event) icon->setIcon(KMimeType::iconNameForUrl(url)); icon->setSize(128,128); //TODO: associate the url with the icon, use the Button plasmoid here + icon->setPos(event->scenePos()-QPoint(icon->boundingRect().width()/2,icon->boundingRect().height()/2)); icon->show(); addItem(icon); }