mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 21:05:31 +08:00
Formatting
This commit is contained in:
@@ -169,30 +169,14 @@ namespace BlackMisc
|
||||
const ICoordinateGeodetic::ColumnIndex i = index.frontCasted<ICoordinateGeodetic::ColumnIndex>();
|
||||
switch (i)
|
||||
{
|
||||
case IndexGeodeticHeight:
|
||||
m_geodeticHeight.setPropertyByIndex(index.copyFrontRemoved(), variant);
|
||||
break;
|
||||
case IndexLatitude:
|
||||
this->setLatitude(variant.value<CLatitude>());
|
||||
break;
|
||||
case IndexLongitude:
|
||||
this->setLongitude(variant.value<CLongitude>());
|
||||
break;
|
||||
case IndexLatitudeAsString:
|
||||
this->setLatitude(CLatitude::fromWgs84(variant.toQString()));
|
||||
break;
|
||||
case IndexLongitudeAsString:
|
||||
this->setLongitude(CLongitude::fromWgs84(variant.toQString()));
|
||||
break;
|
||||
case IndexGeodeticHeightAsString:
|
||||
m_geodeticHeight.parseFromString(variant.toQString());
|
||||
break;
|
||||
case IndexNormalVector:
|
||||
this->setNormalVector(variant.value<QVector3D>());
|
||||
break;
|
||||
default:
|
||||
CValueObject::setPropertyByIndex(index, variant);
|
||||
break;
|
||||
case IndexGeodeticHeight: m_geodeticHeight.setPropertyByIndex(index.copyFrontRemoved(), variant); break;
|
||||
case IndexLatitude: this->setLatitude(variant.value<CLatitude>()); break;
|
||||
case IndexLongitude: this->setLongitude(variant.value<CLongitude>()); break;
|
||||
case IndexLatitudeAsString: this->setLatitude(CLatitude::fromWgs84(variant.toQString())); break;
|
||||
case IndexLongitudeAsString: this->setLongitude(CLongitude::fromWgs84(variant.toQString())); break;
|
||||
case IndexGeodeticHeightAsString: m_geodeticHeight.parseFromString(variant.toQString()); break;
|
||||
case IndexNormalVector: this->setNormalVector(variant.value<QVector3D>()); break;
|
||||
default: CValueObject::setPropertyByIndex(index, variant); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user