My Project
Loading...
Searching...
No Matches
mainwindow.h
Go to the documentation of this file.
1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
3
4
5
#include <QMainWindow>
6
#include <QScrollArea>
7
#include <QVBoxLayout>
8
#include <QVector>
9
#include "
room.h
"
10
#include "
roomwidget.h
"
11
12
QT_BEGIN_NAMESPACE
13
namespace
Ui
{
14
class
MainWindow
;
15
}
16
QT_END_NAMESPACE
17
18
class
MainWindow
:
public
QMainWindow
19
{
20
Q_OBJECT
21
22
public
:
23
MainWindow
(QWidget *parent =
nullptr
);
24
~MainWindow
();
25
26
private
:
27
Ui::MainWindow *ui;
28
QWidget *centralWidget;
29
QScrollArea *scrollArea;
30
QWidget *scrollContent;
31
QVBoxLayout *scrollLayout;
32
33
34
QVector<room> roomList;
35
QVector<RoomWidget*> roomWidgets;
36
37
void
addRoomsUI();
38
void
loadRoomData();
39
private
slots:
40
// void onModifyClicked();
41
void
onTimerTick();
42
};
43
#endif
// MAINWINDOW_H
MainWindow
Definition
mainwindow.h:19
MainWindow::MainWindow
MainWindow(QWidget *parent=nullptr)
Definition
mainwindow.cpp:6
MainWindow::~MainWindow
~MainWindow()
Definition
mainwindow.cpp:44
Ui
Definition
mainwindow.h:13
room.h
roomwidget.h
mainwindow.h
Generated by
1.14.0