Refactoring. Follow code style.
This commit is contained in:
parent
7a46b98f5b
commit
55e4dceb06
|
@ -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?
|
||||
|
|
|
@ -75,7 +75,7 @@ void VPuzzleLayout::SetUnit(Unit unit)
|
|||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
Unit VPuzzleLayout::getUnit() const
|
||||
Unit VPuzzleLayout::GetUnit() const
|
||||
{
|
||||
return m_unit;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user