Bug fixes and improvements for PropertyIndex discovered during refs #319, mainly contributing to refs #314

* Start index 10 instead 0 for CValueObject (easier to detect bugs)
* Fixed wrong indexes
* Asserts in CPropertyIndex
* Used Icon instead of QPixpmap with indexes, icons are sortable and have a tooltip
* Removed redundant toQVariant methods
This commit is contained in:
Klaus Basan
2014-08-31 15:04:52 +02:00
parent 674a0b5665
commit a6ebfc0e0b
14 changed files with 64 additions and 59 deletions

View File

@@ -45,9 +45,6 @@ namespace BlackMisc
//! Init by double value
CLatitude(double value, const BlackMisc::PhysicalQuantities::CAngleUnit &unit) : CEarthAngle(value, unit) {}
//! \copydoc CValueObject::toQVariant
virtual QVariant toQVariant() const override { return QVariant::fromValue(*this); }
//! Virtual destructor
virtual ~CLatitude() {}
};