Refactoring.

This commit is contained in:
Roman Telezhynskyi 2022-08-18 17:09:29 +03:00
parent 5f8b46da5b
commit 94a2bcb005

View File

@ -134,12 +134,8 @@ auto VPLayoutSettings::GetTilesSize() const -> QSizeF
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
auto VPLayoutSettings::GetTilesSize(Unit unit) const -> QSizeF auto VPLayoutSettings::GetTilesSize(Unit unit) const -> QSizeF
{ {
QSizeF convertedSize = QSizeF( return {UnitConvertor(m_tilesSize.width(), Unit::Px, unit),
UnitConvertor(m_tilesSize.width(), Unit::Px, unit), UnitConvertor(m_tilesSize.height(), Unit::Px, unit)};
UnitConvertor(m_tilesSize.height(), Unit::Px, unit)
);
return convertedSize;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------