Fix code style.
This commit is contained in:
parent
7b1449f11e
commit
c1051783f6
|
@ -796,8 +796,6 @@ void PuzzleMainWindow::on_checkBoxLayoutStickyEdges_toggled(bool checked)
|
||||||
// TODO update the QGraphicView
|
// TODO update the QGraphicView
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void PuzzleMainWindow::on_pushButtonLayoutExport_clicked()
|
void PuzzleMainWindow::on_pushButtonLayoutExport_clicked()
|
||||||
{
|
{
|
||||||
|
@ -883,14 +881,15 @@ void PuzzleMainWindow::on_PieceSelectionChanged()
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void PuzzleMainWindow::on_PiecePositionChanged()
|
void PuzzleMainWindow::on_PiecePositionChanged()
|
||||||
{
|
{
|
||||||
|
|
||||||
if(m_selectedPieces.count() == 1)
|
if(m_selectedPieces.count() == 1)
|
||||||
{
|
{
|
||||||
VPuzzlePiece *piece = m_selectedPieces.first();
|
VPuzzlePiece *piece = m_selectedPieces.first();
|
||||||
QPointF pos = piece->GetPosition();
|
QPointF pos = piece->GetPosition();
|
||||||
|
|
||||||
SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceBoxPositionX, UnitConvertor(pos.x(), Unit::Px, m_layout->GetUnit()));
|
SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceBoxPositionX,
|
||||||
SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceBoxPositionY, UnitConvertor(pos.y(), Unit::Px, m_layout->GetUnit()));
|
UnitConvertor(pos.x(), Unit::Px, m_layout->GetUnit()));
|
||||||
|
SetDoubleSpinBoxValue(ui->doubleSpinBoxCurrentPieceBoxPositionY,
|
||||||
|
UnitConvertor(pos.y(), Unit::Px, m_layout->GetUnit()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,8 +101,8 @@ private:
|
||||||
|
|
||||||
void Clean();
|
void Clean();
|
||||||
};
|
};
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
inline const VTranslateVars *MApplication::TrVars()
|
inline const VTranslateVars *MApplication::TrVars()
|
||||||
{
|
{
|
||||||
return trVars;
|
return trVars;
|
||||||
|
|
|
@ -445,6 +445,7 @@ bool VApplication::notify(QObject *receiver, QEvent *event)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VApplication::ActivateDarkMode()
|
void VApplication::ActivateDarkMode()
|
||||||
{
|
{
|
||||||
VValentinaSettings *settings = qApp->ValentinaSettings();
|
VValentinaSettings *settings = qApp->ValentinaSettings();
|
||||||
|
@ -465,7 +466,6 @@ void VApplication::ActivateDarkMode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
QString VApplication::TapeFilePath() const
|
QString VApplication::TapeFilePath() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user