Refactoring. Follow code style.

This commit is contained in:
Roman Telezhynskyi 2020-04-23 15:26:24 +03:00
parent 7a46b98f5b
commit 55e4dceb06
4 changed files with 4 additions and 4 deletions

View File

@ -337,7 +337,7 @@ void PuzzleMainWindow::SetPropertyTabCurrentPieceData()
void PuzzleMainWindow::SetPropertyTabLayoutData()
{
// set Unit
int index = ui->comboBoxLayoutUnit->findData(QVariant(UnitsToStr(m_layout->getUnit())));
int index = ui->comboBoxLayoutUnit->findData(QVariant(UnitsToStr(m_layout->GetUnit())));
if(index != -1)
{
ui->comboBoxLayoutUnit->blockSignals(true); // FIXME: is there a better way to block the signals?

View File

@ -75,7 +75,7 @@ void VPuzzleLayout::SetUnit(Unit unit)
}
//---------------------------------------------------------------------------------------------------------------------
Unit VPuzzleLayout::getUnit() const
Unit VPuzzleLayout::GetUnit() const
{
return m_unit;
}

View File

@ -53,7 +53,7 @@ public:
QList<VPuzzleLayer *> GetLayers();
void SetUnit(Unit unit);
Unit getUnit() const;
Unit GetUnit() const;
/**
* @brief SetLayoutSize sets the size of the layout, the values have to be in Unit::Px

View File

@ -74,7 +74,7 @@ void VPuzzleLayoutFileWriter::WriteProperties(VPuzzleLayout *layout)
{
writeStartElement("properties");
writeTextElement("unit", UnitsToStr(layout->getUnit()));
writeTextElement("unit", UnitsToStr(layout->GetUnit()));
writeTextElement("description", ""); // TODO : define the value in layout