WeatherApp v0.1
Loading...
Searching...
No Matches
mainwindow.h
Go to the documentation of this file.
1
7#ifndef MAINWINDOW_H
8#define MAINWINDOW_H
9
10#include <QMainWindow>
11#include <QPixmap>
12#include <QDateTime>
13#include <weather.h>
14
15QT_BEGIN_NAMESPACE
16namespace Ui { class MainWindow; }
17QT_END_NAMESPACE
18
19class MainWindow : public QMainWindow
20{
21 Q_OBJECT
22
23public:
26 MainWindow(QWidget *parent = nullptr);
29
30private slots:
32 void slotSearch();
33
34private:
36 Ui::MainWindow *ui;
40 void setUI();
41};
42#endif // MAINWINDOW_H
Weather weather
Weather object.
Definition: mainwindow.h:38
void setUI()
Update the UI value from weather data.
Definition: mainwindow.cpp:30
Ui::MainWindow * ui
ui
Definition: mainwindow.h:36
void slotSearch()
Slot to search from a city name.
Definition: mainwindow.cpp:20
~MainWindow()
Default Destructor.
Definition: mainwindow.cpp:16
Weather Header.