From 3e64af6443bbe7381450d5881d28a71d08c383a0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 22 Nov 2022 09:42:24 +0200 Subject: [PATCH] Change Z value for piece controls. This will place them above a piece. --- src/app/puzzle/scene/vpgraphicspiececontrols.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/puzzle/scene/vpgraphicspiececontrols.cpp b/src/app/puzzle/scene/vpgraphicspiececontrols.cpp index 7e25af90d..4d2ef940e 100644 --- a/src/app/puzzle/scene/vpgraphicspiececontrols.cpp +++ b/src/app/puzzle/scene/vpgraphicspiececontrols.cpp @@ -57,6 +57,7 @@ const qreal centerRadius2 = 10; Q_GLOBAL_STATIC_WITH_ARGS(const QColor, defaultColor, (Qt::black)) // NOLINT Q_GLOBAL_STATIC_WITH_ARGS(const QColor, hoverColor, (Qt::green)) // NOLINT +//--------------------------------------------------------------------------------------------------------------------- auto TransformationOrigin(const VPLayoutPtr &layout, const QRectF &boundingRect) -> VPTransformationOrigon { SCASSERT(layout != nullptr) @@ -88,7 +89,7 @@ VPGraphicsTransformationOrigin::VPGraphicsTransformationOrigin(const VPLayoutPtr { SCASSERT(m_layout != nullptr) setCursor(Qt::OpenHandCursor); - setZValue(1); + setZValue(1000); setAcceptHoverEvents(true); connect(layout.data(), &VPLayout::TransformationOriginChanged, this,