diff --git a/src/app/puzzle/vpuzzlelayout.cpp b/src/app/puzzle/vpuzzlelayout.cpp index 0d3e4a1ae..3e14dd36e 100644 --- a/src/app/puzzle/vpuzzlelayout.cpp +++ b/src/app/puzzle/vpuzzlelayout.cpp @@ -31,16 +31,16 @@ VPuzzleLayout::VPuzzleLayout() : m_unplacedPiecesLayer(new VPuzzleLayer()), m_layers(QList()), - m_layoutUnit(Unit::Cm), - m_layoutSize(QSizeF()), - m_layoutMargins(QMarginsF()), + m_unit(Unit::Cm), + m_size(QSizeF()), + m_margins(QMarginsF()), m_followGrainLine(FollowGrainline::No), m_piecesGap(0), m_warningSuperpositionOfPieces(false), m_warningPiecesOutOfBound(false), m_stickyEdges(false) { - m_piecesGap = 0; + } //--------------------------------------------------------------------------------------------------------------------- @@ -79,53 +79,53 @@ QList VPuzzleLayout::GetLayers() //--------------------------------------------------------------------------------------------------------------------- void VPuzzleLayout::SetUnit(Unit unit) { - m_layoutUnit = unit; + m_unit = unit; } //--------------------------------------------------------------------------------------------------------------------- Unit VPuzzleLayout::getUnit() { - return m_layoutUnit; + return m_unit; } //--------------------------------------------------------------------------------------------------------------------- void VPuzzleLayout::SetLayoutSize(qreal width, qreal height) { - m_layoutSize.setWidth(width); - m_layoutSize.setHeight(height); + m_size.setWidth(width); + m_size.setHeight(height); } //--------------------------------------------------------------------------------------------------------------------- void VPuzzleLayout::SetLayoutSize(QSizeF size) { - m_layoutSize = size; + m_size = size; } //--------------------------------------------------------------------------------------------------------------------- QSizeF VPuzzleLayout::GetLayoutSize() { - return m_layoutSize; + return m_size; } //--------------------------------------------------------------------------------------------------------------------- void VPuzzleLayout::SetLayoutMargins(qreal left, qreal top, qreal right, qreal bottom) { - m_layoutMargins.setLeft(left); - m_layoutMargins.setTop(top); - m_layoutMargins.setRight(right); - m_layoutMargins.setRight(bottom); + m_margins.setLeft(left); + m_margins.setTop(top); + m_margins.setRight(right); + m_margins.setRight(bottom); } //--------------------------------------------------------------------------------------------------------------------- void VPuzzleLayout::SetLayoutMargins(QMarginsF margins) { - m_layoutMargins = margins; + m_margins = margins; } //--------------------------------------------------------------------------------------------------------------------- QMarginsF VPuzzleLayout::GetLayoutMargins() { - return m_layoutMargins; + return m_margins; } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/app/puzzle/vpuzzlelayout.h b/src/app/puzzle/vpuzzlelayout.h index d45ffed52..2f35c6e73 100644 --- a/src/app/puzzle/vpuzzlelayout.h +++ b/src/app/puzzle/vpuzzlelayout.h @@ -82,11 +82,11 @@ private: QList m_layers; // format - Unit m_layoutUnit; - QSizeF m_layoutSize; + Unit m_unit; + QSizeF m_size; // margins - QMarginsF m_layoutMargins; + QMarginsF m_margins; // control FollowGrainline m_followGrainLine;