From ebe039d26768dfc4e354b5b5919ce8831b582bc3 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Sat, 4 Jun 2016 23:58:48 +0200 Subject: [PATCH] Add missing CCloudLayer property indexes refs #663 --- src/blackmisc/weather/cloudlayer.cpp | 15 +++++++++++++++ src/blackmisc/weather/cloudlayer.h | 5 +++++ 2 files changed, 20 insertions(+) diff --git a/src/blackmisc/weather/cloudlayer.cpp b/src/blackmisc/weather/cloudlayer.cpp index d88a43e4a..8d46fbb00 100644 --- a/src/blackmisc/weather/cloudlayer.cpp +++ b/src/blackmisc/weather/cloudlayer.cpp @@ -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()); break; + case IndexPrecipitationRate: + setPrecipitationRate(variant.value()); + break; + case IndexPrecipitation: + setPrecipitation(variant.value()); + break; + case IndexClouds: + setClouds(variant.value()); + break; case IndexCoveragePercent: setCoveragePercent(variant.value()); break; diff --git a/src/blackmisc/weather/cloudlayer.h b/src/blackmisc/weather/cloudlayer.h index 7fb360a3f..f88178410 100644 --- a/src/blackmisc/weather/cloudlayer.h +++ b/src/blackmisc/weather/cloudlayer.h @@ -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