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

View File

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