converting value objects to/from QVariant

refs #81
This commit is contained in:
Klaus Basan
2013-12-13 19:58:51 +00:00
committed by Mathew Sutcliffe
parent 0518e680c3
commit 67a5dbfe48
31 changed files with 457 additions and 0 deletions

View File

@@ -72,6 +72,15 @@ namespace BlackMisc
*/
CTrack(BlackMisc::PhysicalQuantities::CAngle track, ReferenceNorth north) : BlackMisc::PhysicalQuantities::CAngle(track), m_north(north) {}
/*!
* \brief As QVariant
* \return
*/
virtual QVariant toQVariant() const
{
return QVariant::fromValue(*this);
}
/*!
* \brief Equal operator ==
* \param other