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