|
|
|
@ -92,7 +92,6 @@ UBGraphicsDelegateFrame::~UBGraphicsDelegateFrame() |
|
|
|
|
// NOOP
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UBGraphicsDelegateFrame::setAntiScale(qreal pAntiScale) |
|
|
|
|
{ |
|
|
|
|
mFrameWidth = mNominalFrameWidth * pAntiScale; |
|
|
|
@ -298,8 +297,8 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event) |
|
|
|
|
|
|
|
|
|
QSizeF newSize = resizableItem->size() + incVector; |
|
|
|
|
|
|
|
|
|
if (newSize.width() < 50 /*0*/ || newSize.height() < /*0*/ 50) |
|
|
|
|
return; |
|
|
|
|
// if (newSize.width() < 50 /*0*/ || newSize.height() < /*0*/ 50)
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
|
|
resizableItem->resize(newSize); |
|
|
|
|
} |
|
|
|
@ -596,4 +595,3 @@ QRectF UBGraphicsDelegateFrame::rotateButtonBounds() const |
|
|
|
|
return QRectF(rect().right()- mFrameWidth, rect().top(), mFrameWidth, mFrameWidth); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|