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