mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 10:15:43 +08:00
refs #403 add default constructors to CAvionicsBase and CPhysicalQuantity
The rationale behind this is that QtMetaType complains if there is no default constructor.
This commit is contained in:
@@ -23,6 +23,10 @@ namespace BlackMisc
|
|||||||
protected:
|
protected:
|
||||||
QString m_name; //!< name of the unit
|
QString m_name; //!< name of the unit
|
||||||
|
|
||||||
|
//! Default constructor
|
||||||
|
//! \todo Remove as part of MS' CValueObject refactoring
|
||||||
|
CAvionicsBase() : m_name("empty") {}
|
||||||
|
|
||||||
//! \brief Constructor
|
//! \brief Constructor
|
||||||
CAvionicsBase(const QString &name) : m_name(name) {}
|
CAvionicsBase(const QString &name) : m_name(name) {}
|
||||||
|
|
||||||
|
|||||||
@@ -245,6 +245,11 @@ namespace BlackMisc
|
|||||||
virtual void setPropertyByIndex(const CVariant &variant, const BlackMisc::CPropertyIndex &index) override;
|
virtual void setPropertyByIndex(const CVariant &variant, const BlackMisc::CPropertyIndex &index) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
//! Default constructor
|
||||||
|
//! \todo Remove as part of MS' CValueObject refactoring
|
||||||
|
CPhysicalQuantity() : m_value(0.0), m_unit(MU::nullUnit()) {}
|
||||||
|
|
||||||
//! Constructor with double
|
//! Constructor with double
|
||||||
CPhysicalQuantity(double value, const MU &unit);
|
CPhysicalQuantity(double value, const MU &unit);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user