Commit be07b400 authored by Aleksei Kanash's avatar Aleksei Kanash

Fixed resizing items by right bottom resizer.

parent c57beb74
...@@ -589,6 +589,12 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event) ...@@ -589,6 +589,12 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
else else
mCurrentTool = ResizeRight; mCurrentTool = ResizeRight;
move = QLineF(event->lastScenePos(), event->scenePos());
moveX = move.length() * cos((move.angle() - mAngle) * PI / 180);
moveY = -move.length() * sin((move.angle() - mAngle) * PI / 180);
mFixedPoint = getFixedPointFromPos();
incH = resizeDelegate(moveX, moveY); incH = resizeDelegate(moveX, moveY);
mOriginalSize -= incV; mOriginalSize -= incV;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment