Add missing CCloudLayer property indexes

refs #663
This commit is contained in:
Roland Winklmeier
2016-06-04 23:58:48 +02:00
parent a68cd16a7a
commit ebe039d267
2 changed files with 20 additions and 0 deletions

View File

@@ -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;

View File

@@ -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