map the movement to the rotation transform
svn path=/trunk/KDE/kdelibs/; revision=1021647
This commit is contained in:
parent
19e7f85056
commit
f56a174cd3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user