SANKORE-407 remove minX/MinY size, for widgets can be sized to any value

preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent 29b8bc02c1
commit 54ebbb097f
  1. 6
      src/domain/UBGraphicsDelegateFrame.cpp

@ -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);
} }

Loading…
Cancel
Save