Refresh rotation handles after rotation finish.

This commit is contained in:
Roman Telezhynskyi 2021-08-18 20:51:40 +03:00
parent cfb8c1b1f4
commit 9a7e4e5ea6

View File

@ -366,6 +366,8 @@ void VPMainGraphicsView::keyReleaseEvent(QKeyEvent *event)
if (not event->isAutoRepeat()) if (not event->isAutoRepeat())
{ {
m_rotationControls->SetIgnorePieceTransformation(false); m_rotationControls->SetIgnorePieceTransformation(false);
m_rotationControls->on_UpdateControls();
m_rotationControls->on_HideHandles(false);
} }
} }
VMainGraphicsView::keyReleaseEvent(event); VMainGraphicsView::keyReleaseEvent(event);
@ -466,6 +468,7 @@ void VPMainGraphicsView::ConnectPiece(VPGraphicsPiece *piece)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VPMainGraphicsView::RotatePiecesByAngle(qreal angle) void VPMainGraphicsView::RotatePiecesByAngle(qreal angle)
{ {
m_rotationControls->on_HideHandles(true);
m_rotationControls->SetIgnorePieceTransformation(true); m_rotationControls->SetIgnorePieceTransformation(true);
VPLayoutPtr layout = m_layout.toStrongRef(); VPLayoutPtr layout = m_layout.toStrongRef();