From 9a7e4e5ea6b33d17a1a2a8a7a7340f0fbe6377c1 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 18 Aug 2021 20:51:40 +0300 Subject: [PATCH] Refresh rotation handles after rotation finish. --- src/app/puzzle/scene/vpmaingraphicsview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/puzzle/scene/vpmaingraphicsview.cpp b/src/app/puzzle/scene/vpmaingraphicsview.cpp index 95c55f583..c1286bc93 100644 --- a/src/app/puzzle/scene/vpmaingraphicsview.cpp +++ b/src/app/puzzle/scene/vpmaingraphicsview.cpp @@ -366,6 +366,8 @@ void VPMainGraphicsView::keyReleaseEvent(QKeyEvent *event) if (not event->isAutoRepeat()) { m_rotationControls->SetIgnorePieceTransformation(false); + m_rotationControls->on_UpdateControls(); + m_rotationControls->on_HideHandles(false); } } VMainGraphicsView::keyReleaseEvent(event); @@ -466,6 +468,7 @@ void VPMainGraphicsView::ConnectPiece(VPGraphicsPiece *piece) //--------------------------------------------------------------------------------------------------------------------- void VPMainGraphicsView::RotatePiecesByAngle(qreal angle) { + m_rotationControls->on_HideHandles(true); m_rotationControls->SetIgnorePieceTransformation(true); VPLayoutPtr layout = m_layout.toStrongRef();