Fixed resizing items by right bottom resizer.

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

@ -589,6 +589,12 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
else
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);
mOriginalSize -= incV;

Loading…
Cancel
Save