fixed an issue where the rotate cursor would not update correctly after deselection/selection

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent 1a8c84c79e
commit d206b31a0b
  1. 4
      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

Loading…
Cancel
Save