mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 17:55:34 +08:00
committed by
Mathew Sutcliffe
parent
2cdc2abeb5
commit
f247399575
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
void BlackMisc::PhysicalQuantities::registerMetadata()
|
||||
{
|
||||
CMeasurementUnit::registerMetadata();
|
||||
CAcceleration::registerMetadata();
|
||||
CAngle::registerMetadata();
|
||||
CFrequency::registerMetadata();
|
||||
|
||||
@@ -74,5 +74,16 @@ namespace BlackMisc
|
||||
return s;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Register metadata of unit and quantity
|
||||
*/
|
||||
void CMeasurementUnit::registerMetadata()
|
||||
{
|
||||
qRegisterMetaType<CMeasurementUnit>();
|
||||
qDBusRegisterMetaType<CMeasurementUnit>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -403,10 +403,16 @@ namespace BlackMisc
|
||||
static CMeasurementUnit none("none", "", NilConverter(), 0, 0);
|
||||
return none;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Metadata, mainly needed for None
|
||||
*/
|
||||
static void registerMetadata();
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::PhysicalQuantities::CMeasurementUnit)
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user