|
|
@ -103,11 +103,10 @@ UBGraphicsDelegateFrame::UBGraphicsDelegateFrame(UBGraphicsItemDelegate* pDelega |
|
|
|
mRotateButton->setCursor(UBResources::resources()->rotateCursor); |
|
|
|
mRotateButton->setCursor(UBResources::resources()->rotateCursor); |
|
|
|
mRotateButton->setVisible(mDelegate->testUBFlags(GF_REVOLVABLE)); |
|
|
|
mRotateButton->setVisible(mDelegate->testUBFlags(GF_REVOLVABLE)); |
|
|
|
|
|
|
|
|
|
|
|
updateResizeCursors(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setAntiScale(1.0); |
|
|
|
setAntiScale(1.0); |
|
|
|
|
|
|
|
|
|
|
|
positionHandles(); |
|
|
|
positionHandles(); |
|
|
|
|
|
|
|
updateResizeCursors(); |
|
|
|
|
|
|
|
|
|
|
|
this->setAcceptHoverEvents(true); |
|
|
|
this->setAcceptHoverEvents(true); |
|
|
|
} |
|
|
|
} |
|
|
@ -839,6 +838,7 @@ void UBGraphicsDelegateFrame::positionHandles() |
|
|
|
resetTransform(); |
|
|
|
resetTransform(); |
|
|
|
setTransform(QTransform::fromTranslate(center.x(), center.y()), true); |
|
|
|
setTransform(QTransform::fromTranslate(center.x(), center.y()), true); |
|
|
|
setTransform(QTransform().rotate(-angle), true); |
|
|
|
setTransform(QTransform().rotate(-angle), true); |
|
|
|
|
|
|
|
mAngle = angle; |
|
|
|
setTransform(QTransform::fromTranslate(-center.x(), -center.y()), true); |
|
|
|
setTransform(QTransform::fromTranslate(-center.x(), -center.y()), true); |
|
|
|
//TODO: combine these transforms into one
|
|
|
|
//TODO: combine these transforms into one
|
|
|
|
|
|
|
|
|
|
|
|