map the movement to the rotation transform

svn path=/trunk/KDE/kdelibs/; revision=1021647
This commit is contained in:
Marco Martin 2009-09-09 18:08:00 +00:00
parent 19e7f85056
commit f56a174cd3

View File

@ -582,7 +582,8 @@ void AppletHandle::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
}
if (m_applet) {
m_applet->moveBy(deltaScene.x(), deltaScene.y());
QPointF mappedPoint = transform().map(QPointF(deltaScene.x(), deltaScene.y()));
m_applet->moveBy(mappedPoint.x(), mappedPoint.y());
}
} else if (m_pressedButton == ResizeButton || m_pressedButton == RotateButton) {
QPointF cursorPoint = event->scenePos();