|
|
@ -401,7 +401,7 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event) |
|
|
|
qreal width = delegated()->boundingRect().width() * mTotalScaleX; |
|
|
|
qreal width = delegated()->boundingRect().width() * mTotalScaleX; |
|
|
|
qreal height = delegated()->boundingRect().height() * mTotalScaleY; |
|
|
|
qreal height = delegated()->boundingRect().height() * mTotalScaleY; |
|
|
|
|
|
|
|
|
|
|
|
if (mOperationMode == Scaling) |
|
|
|
if (mOperationMode == Scaling) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(!rotating()) |
|
|
|
if(!rotating()) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -443,8 +443,8 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event) |
|
|
|
mScaleY = scaleY; |
|
|
|
mScaleY = scaleY; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}else if (resizingLeft() || resizingRight()) |
|
|
|
} |
|
|
|
{ |
|
|
|
else if (resizingLeft() || resizingRight()){ |
|
|
|
if(width != 0){ |
|
|
|
if(width != 0){ |
|
|
|
qreal scaleX = 0.0; |
|
|
|
qreal scaleX = 0.0; |
|
|
|
if(resizingLeft()){ |
|
|
|
if(resizingLeft()){ |
|
|
|