|
|
@ -273,12 +273,14 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event) |
|
|
|
if(resizingLeft()){ |
|
|
|
if(resizingLeft()){ |
|
|
|
scaleX = (width - moveX) / width; |
|
|
|
scaleX = (width - moveX) / width; |
|
|
|
}else if(resizingRight()){ |
|
|
|
}else if(resizingRight()){ |
|
|
|
scaleX = (width + moveX) / width; |
|
|
|
scaleX = (width + moveX) / width; |
|
|
|
} |
|
|
|
} |
|
|
|
if(mDelegate->isFlippable() && qAbs(scaleX) != 0){ |
|
|
|
if(mDelegate->isFlippable() && qAbs(scaleX) != 0){ |
|
|
|
if((qAbs(width * scaleX)) < 2*mFrameWidth){ |
|
|
|
if((qAbs(width * scaleX)) < 2*mFrameWidth){ |
|
|
|
bool negative = (scaleX < 0)?true:false; |
|
|
|
bool negative = (scaleX < 0)?true:false; |
|
|
|
|
|
|
|
|
|
|
|
mMirrorX = (negative?mMirrorX:!mMirrorX); |
|
|
|
mMirrorX = (negative?mMirrorX:!mMirrorX); |
|
|
|
|
|
|
|
|
|
|
|
if(negative){ |
|
|
|
if(negative){ |
|
|
|
scaleX = -2*mFrameWidth/width; |
|
|
|
scaleX = -2*mFrameWidth/width; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|