register CMeasurementUnit as a Qt meta type

refs #81
This commit is contained in:
Klaus Basan
2013-12-09 22:30:43 +00:00
committed by Mathew Sutcliffe
parent 2cdc2abeb5
commit f247399575
3 changed files with 18 additions and 0 deletions

View File

@@ -74,5 +74,16 @@ namespace BlackMisc
return s;
}
/*!
* \brief Register metadata of unit and quantity
*/
void CMeasurementUnit::registerMetadata()
{
qRegisterMetaType<CMeasurementUnit>();
qDBusRegisterMetaType<CMeasurementUnit>();
}
} // namespace
} // namespace