|
|
@ -195,10 +195,10 @@ QVariant UBGraphicsItemDelegate::itemChange(QGraphicsItem::GraphicsItemChange ch |
|
|
|
if ((change == QGraphicsItem::ItemSelectedHasChanged |
|
|
|
if ((change == QGraphicsItem::ItemSelectedHasChanged |
|
|
|
|| change == QGraphicsItem::ItemPositionHasChanged |
|
|
|
|| change == QGraphicsItem::ItemPositionHasChanged |
|
|
|
|| change == QGraphicsItem::ItemTransformHasChanged) |
|
|
|
|| change == QGraphicsItem::ItemTransformHasChanged) |
|
|
|
&& mDelegated->scene()) |
|
|
|
&& mDelegated->scene() |
|
|
|
{ |
|
|
|
&& UBApplication::boardController) |
|
|
|
|
|
|
|
{ |
|
|
|
mAntiScaleRatio = 1 / (UBApplication::boardController->systemScaleFactor() * UBApplication::boardController->currentZoom()); |
|
|
|
mAntiScaleRatio = 1 / (UBApplication::boardController->systemScaleFactor() * UBApplication::boardController->currentZoom()); |
|
|
|
|
|
|
|
|
|
|
|
positionHandles(); |
|
|
|
positionHandles(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|