Ref T259, Ref T243 return unit by reference

This commit is contained in:
Klaus Basan
2018-04-03 23:58:32 +02:00
parent bedfb5eb67
commit cf98c46231
3 changed files with 6 additions and 9 deletions

View File

@@ -60,7 +60,7 @@ namespace BlackMisc
//! Index
enum ColumnIndex
{
IndexUnit = BlackMisc::CPropertyIndex::GlobalIndexCPhysicalQuantity,
IndexUnit = CPropertyIndex::GlobalIndexCPhysicalQuantity,
IndexValue,
IndexValueRounded0DigitsWithUnit,
IndexValueRounded1DigitsWithUnit,
@@ -70,11 +70,11 @@ namespace BlackMisc
};
//! Unit
MU getUnit() const;
const MU &getUnit() const { return m_unit; }
//! Simply set unit, do no calclulate conversion
//! \sa switchUnit
void setUnit(MU unit) { this->m_unit = unit; }
void setUnit(MU unit) { m_unit = unit; }
//! Set unit by string
void setUnitBySymbol(const QString &unitName);