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