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