From d206b31a0ba3145f100b3e3d76a3de6a3655a08c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Fri, 1 Apr 2022 13:53:52 +0200 Subject: [PATCH] fixed an issue where the rotate cursor would not update correctly after deselection/selection --- src/domain/UBGraphicsDelegateFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/UBGraphicsDelegateFrame.cpp b/src/domain/UBGraphicsDelegateFrame.cpp index 36334510..e0970eb5 100644 --- a/src/domain/UBGraphicsDelegateFrame.cpp +++ b/src/domain/UBGraphicsDelegateFrame.cpp @@ -103,11 +103,10 @@ UBGraphicsDelegateFrame::UBGraphicsDelegateFrame(UBGraphicsItemDelegate* pDelega mRotateButton->setCursor(UBResources::resources()->rotateCursor); mRotateButton->setVisible(mDelegate->testUBFlags(GF_REVOLVABLE)); - updateResizeCursors(); - setAntiScale(1.0); positionHandles(); + updateResizeCursors(); this->setAcceptHoverEvents(true); } @@ -839,6 +838,7 @@ void UBGraphicsDelegateFrame::positionHandles() resetTransform(); setTransform(QTransform::fromTranslate(center.x(), center.y()), true); setTransform(QTransform().rotate(-angle), true); + mAngle = angle; setTransform(QTransform::fromTranslate(-center.x(), -center.y()), true); //TODO: combine these transforms into one