26 lines
355 B
C++
26 lines
355 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include <QLabel>
|
|
#include <QNetworkReply>
|
|
|
|
class MainWindow;
|
|
|
|
class WeatherWidget : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WeatherWidget(MainWindow &mainWindow);
|
|
|
|
private Q_SLOTS:
|
|
void refresh();
|
|
void finished();
|
|
|
|
private:
|
|
MainWindow &m_mainWindow;
|
|
|
|
std::unique_ptr<QNetworkReply> m_reply;
|
|
};
|