[weather] use some Q_DECLARE_TYPEINFO

parent 32af7e8d
......@@ -77,6 +77,10 @@ public:
QVector <WeatherData::ForecastInfo *> forecasts;
};
Q_DECLARE_TYPEINFO(WeatherData::ForecastInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(WeatherData, Q_MOVABLE_TYPE);
class Q_DECL_EXPORT UKMETIon : public IonInterface, public Plasma::DataEngineConsumer
{
Q_OBJECT
......
......@@ -135,6 +135,10 @@ public:
float recordSnow;
};
Q_DECLARE_TYPEINFO(WeatherData::WeatherEvent, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(WeatherData::ForecastInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(WeatherData, Q_MOVABLE_TYPE);
/**
* https://weather.gc.ca/mainmenu/disclaimer_e.html
*/
......
......@@ -80,6 +80,10 @@ public:
QVector<Forecast> forecasts;
};
Q_DECLARE_TYPEINFO(WeatherData::Forecast, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(WeatherData, Q_MOVABLE_TYPE);
class Q_DECL_EXPORT NOAAIon : public IonInterface, public Plasma::DataEngineConsumer
{
Q_OBJECT
......
......@@ -94,6 +94,11 @@ public:
QVector<WeatherData::ForecastPeriod *> forecasts;
};
Q_DECLARE_TYPEINFO(WeatherData::ForecastInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(WeatherData::ForecastPeriod, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(WeatherData, Q_MOVABLE_TYPE);
class Q_DECL_EXPORT WetterComIon : public IonInterface
{
Q_OBJECT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment