From c1051783f6a666d6675f82b1cad19eb67af1675d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 10 May 2020 18:35:15 +0300 Subject: [PATCH] Fix code style. --- src/app/puzzle/puzzlemainwindow.cpp | 9 ++++----- src/app/tape/mapplication.h | 2 +- src/app/valentina/core/vapplication.cpp | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app/puzzle/puzzlemainwindow.cpp b/src/app/puzzle/puzzlemainwindow.cpp index b76bcb9b0..df72ac4f4 100644 --- a/src/app/puzzle/puzzlemainwindow.cpp +++ b/src/app/puzzle/puzzlemainwindow.cpp @@ -796,8 +796,6 @@ void PuzzleMainWindow::on_checkBoxLayoutStickyEdges_toggled(bool checked) // TODO update the QGraphicView } - - //--------------------------------------------------------------------------------------------------------------------- void PuzzleMainWindow::on_pushButtonLayoutExport_clicked() { @@ -883,14 +881,15 @@ void PuzzleMainWindow::on_PieceSelectionChanged() //--------------------------------------------------------------------------------------------------------------------- void PuzzleMainWindow::on_PiecePositionChanged() { - if(m_selectedPieces.count() == 1) { VPuzzlePiece *piece = m_selectedPieces.first(); QPointF pos = piece->GetPosition(); - SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceBoxPositionX, UnitConvertor(pos.x(), Unit::Px, m_layout->GetUnit())); - SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceBoxPositionY, UnitConvertor(pos.y(), Unit::Px, m_layout->GetUnit())); + SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceBoxPositionX, + UnitConvertor(pos.x(), Unit::Px, m_layout->GetUnit())); + SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceBoxPositionY, + UnitConvertor(pos.y(), Unit::Px, m_layout->GetUnit())); } } diff --git a/src/app/tape/mapplication.h b/src/app/tape/mapplication.h index 839780026..d1d4a6d27 100644 --- a/src/app/tape/mapplication.h +++ b/src/app/tape/mapplication.h @@ -101,8 +101,8 @@ private: void Clean(); }; -//--------------------------------------------------------------------------------------------------------------------- +//--------------------------------------------------------------------------------------------------------------------- inline const VTranslateVars *MApplication::TrVars() { return trVars; diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index 6d0cf88bc..bea11612d 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -445,6 +445,7 @@ bool VApplication::notify(QObject *receiver, QEvent *event) return false; } +//--------------------------------------------------------------------------------------------------------------------- void VApplication::ActivateDarkMode() { VValentinaSettings *settings = qApp->ValentinaSettings(); @@ -465,7 +466,6 @@ void VApplication::ActivateDarkMode() } } - //--------------------------------------------------------------------------------------------------------------------- QString VApplication::TapeFilePath() const {