Constructor for PQ by string (e.g. 100km/h),

motivated by MS review https://dev.vatsim-germany.org/issues/212#note-6
refs #212
This commit is contained in:
Klaus Basan
2014-04-30 01:15:30 +02:00
parent 7b5e768513
commit 112bd55362
8 changed files with 21 additions and 0 deletions

View File

@@ -22,6 +22,9 @@ namespace BlackMisc
//! Init by double value
CLength(double value, const CLengthUnit &unit) : CPhysicalQuantity(value, unit) {}
//! \copydoc CPhysicalQuantity(const QString &unitString)
CLength(const QString &unitString) : CPhysicalQuantity(unitString) {}
//! \copydoc CValueObject::toQVariant
virtual QVariant toQVariant() const override
{