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:
parent
b3a584ab04
commit
28f584f03b
@ -278,9 +278,10 @@ void AppletHandle::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
|||||||
m_containment = containments[i];
|
m_containment = containments[i];
|
||||||
//m_containment->addChild(m_applet);
|
//m_containment->addChild(m_applet);
|
||||||
//setParentItem(containments[i]);
|
//setParentItem(containments[i]);
|
||||||
|
m_containment->addApplet(m_applet);
|
||||||
setPos(m_containment->mapFromScene(scenePosition));
|
setPos(m_containment->mapFromScene(scenePosition));
|
||||||
m_applet->installSceneEventFilter(m_containment);
|
m_applet->installSceneEventFilter(m_containment);
|
||||||
m_containment->addApplet(m_applet);
|
setParentItem(m_containment);
|
||||||
update();
|
update();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user