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
15
QT_BEGIN_NAMESPACE
16
namespace
Ui {
class
MainWindow
; }
17
QT_END_NAMESPACE
18
19
class
MainWindow
:
public
QMainWindow
20
{
21
Q_OBJECT
22
23
public
:
26
MainWindow
(QWidget *parent =
nullptr
);
28
~MainWindow
();
29
30
private
slots:
32
void
slotSearch
();
33
34
private
:
36
Ui::MainWindow *
ui
;
38
Weather
weather
;
40
void
setUI
();
41
};
42
#endif
// MAINWINDOW_H
MainWindow
Definition:
mainwindow.h:20
MainWindow::weather
Weather weather
Weather object.
Definition:
mainwindow.h:38
MainWindow::setUI
void setUI()
Update the UI value from weather data.
Definition:
mainwindow.cpp:30
MainWindow::ui
Ui::MainWindow * ui
ui
Definition:
mainwindow.h:36
MainWindow::slotSearch
void slotSearch()
Slot to search from a city name.
Definition:
mainwindow.cpp:20
MainWindow::~MainWindow
~MainWindow()
Default Destructor.
Definition:
mainwindow.cpp:16
Weather
Definition:
weather.h:18
weather.h
Weather Header.
mainwindow.h
Generated by
1.9.5