|
|
@ -322,6 +322,12 @@ void UBGraphicsTextItemDelegate::positionHandles() |
|
|
|
|
|
|
|
|
|
|
|
void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode changeMode) |
|
|
|
void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode changeMode) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (scaleSize == changeMode) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (1 == factor) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
if (0 == factor) |
|
|
|
if (0 == factor) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
@ -419,4 +425,4 @@ QVariant UBGraphicsTextItemDelegate::itemChange(QGraphicsItem::GraphicsItemChang |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return UBGraphicsItemDelegate::itemChange(change, value); |
|
|
|
return UBGraphicsItemDelegate::itemChange(change, value); |
|
|
|
} |
|
|
|
} |
|
|
|