Fixed resizing items by right bottom resizer.

preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent c57beb74ca
commit be07b400c0
  1. 8
      src/domain/UBGraphicsDelegateFrame.cpp

@ -588,7 +588,13 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
mCurrentTool = ResizeLeft; mCurrentTool = ResizeLeft;
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;

Loading…
Cancel
Save