From 283a62f580ab10ab01d1f6075ee700702411b33f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 24 Feb 2024 12:20:50 +0200 Subject: [PATCH] Fix build errors. --- src/app/puzzle/layout/vppiece.cpp | 2 +- src/app/puzzle/layout/vppiece.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/puzzle/layout/vppiece.cpp b/src/app/puzzle/layout/vppiece.cpp index 3d85a3a18..b2c27fe81 100644 --- a/src/app/puzzle/layout/vppiece.cpp +++ b/src/app/puzzle/layout/vppiece.cpp @@ -217,7 +217,7 @@ void VPPiece::ClearTransformations() } //--------------------------------------------------------------------------------------------------------------------- -void VPPiece::SetPosition(QPointF point) const +void VPPiece::SetPosition(QPointF point) { QTransform matrix = GetMatrix(); const QPointF offset = MappedDetailBoundingRect().topLeft(); diff --git a/src/app/puzzle/layout/vppiece.h b/src/app/puzzle/layout/vppiece.h index 03108dfa5..9700408d0 100644 --- a/src/app/puzzle/layout/vppiece.h +++ b/src/app/puzzle/layout/vppiece.h @@ -65,13 +65,13 @@ public: * @brief SetPosition Sets the position of the piece, in relation to the origin of the scene * @param point the point where to set the piece */ - void SetPosition(QPointF point) const; + void SetPosition(QPointF point); /** * @brief GetPosition Returns the position of the piece * @return the position of the piece */ - auto QPointF GetPosition() -> QPointF; + auto GetPosition() const -> QPointF; /** * @brief RotateToGrainline rotates the piece to follow the grainline