mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-21 09:39:57 +00:00
system source, some code improvements
This commit is contained in:
@ -31,12 +31,12 @@ class AbstractWeatherProvider : public QObject
|
||||
public:
|
||||
explicit AbstractWeatherProvider(QObject *_parent)
|
||||
: QObject(_parent){};
|
||||
virtual ~AbstractWeatherProvider(){};
|
||||
~AbstractWeatherProvider() override = default;
|
||||
virtual void initUrl(const QString &_city, const QString &_country, const int _ts) = 0;
|
||||
virtual QVariantHash parse(const QVariantMap &_json) const = 0;
|
||||
QString tag(const QString &_type) const
|
||||
{
|
||||
return static_cast<AbstractExtItem *>(parent())->tag(_type);
|
||||
return dynamic_cast<AbstractExtItem *>(parent())->tag(_type);
|
||||
};
|
||||
virtual QUrl url() const = 0;
|
||||
};
|
||||
|
Reference in New Issue
Block a user