proper order of arguments to get the geometries right. dragging between containments now works pretty well.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742035
This commit is contained in:
Aaron J. Seigo 2007-11-26 23:38:39 +00:00
parent b3a584ab04
commit 28f584f03b

View File

@ -278,9 +278,10 @@ void AppletHandle::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
m_containment = containments[i];
//m_containment->addChild(m_applet);
//setParentItem(containments[i]);
m_containment->addApplet(m_applet);
setPos(m_containment->mapFromScene(scenePosition));
m_applet->installSceneEventFilter(m_containment);
m_containment->addApplet(m_applet);
setParentItem(m_containment);
update();
break;
}