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
This commit is contained in:
parent
fb1fe06b79
commit
3313101e56
@ -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())) {
|
||||
|
Loading…
Reference in New Issue
Block a user