mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
@@ -64,6 +64,12 @@ namespace BlackMisc
|
||||
return CVariant::fromValue(m_base);
|
||||
case IndexTop:
|
||||
return CVariant::fromValue(m_top);
|
||||
case IndexPrecipitationRate:
|
||||
return CVariant::fromValue(m_precipitationRate);
|
||||
case IndexPrecipitation:
|
||||
return CVariant::fromValue(m_precipitation);
|
||||
case IndexClouds:
|
||||
return CVariant::fromValue(m_clouds);
|
||||
case IndexCoveragePercent:
|
||||
return CVariant::fromValue(m_coveragePercent);
|
||||
default:
|
||||
@@ -83,6 +89,15 @@ namespace BlackMisc
|
||||
case IndexTop:
|
||||
setTop(variant.value<CAltitude>());
|
||||
break;
|
||||
case IndexPrecipitationRate:
|
||||
setPrecipitationRate(variant.value<int>());
|
||||
break;
|
||||
case IndexPrecipitation:
|
||||
setPrecipitation(variant.value<Precipitation>());
|
||||
break;
|
||||
case IndexClouds:
|
||||
setClouds(variant.value<Clouds>());
|
||||
break;
|
||||
case IndexCoveragePercent:
|
||||
setCoveragePercent(variant.value<int>());
|
||||
break;
|
||||
|
||||
@@ -65,6 +65,9 @@ namespace BlackMisc
|
||||
{
|
||||
IndexBase = BlackMisc::CPropertyIndex::GlobalIndexCCloudLayer,
|
||||
IndexTop,
|
||||
IndexPrecipitationRate,
|
||||
IndexPrecipitation,
|
||||
IndexClouds,
|
||||
IndexCoveragePercent
|
||||
};
|
||||
|
||||
@@ -158,5 +161,7 @@ namespace BlackMisc
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Weather::CCloudLayer)
|
||||
Q_DECLARE_METATYPE(BlackMisc::Weather::CCloudLayer::Coverage)
|
||||
Q_DECLARE_METATYPE(BlackMisc::Weather::CCloudLayer::Clouds)
|
||||
Q_DECLARE_METATYPE(BlackMisc::Weather::CCloudLayer::Precipitation)
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user