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
12QT_BEGIN_NAMESPACE
13namespace Ui {
14class MainWindow;
15}
16QT_END_NAMESPACE
17
18class MainWindow : public QMainWindow
19{
20 Q_OBJECT
21
22public:
23 MainWindow(QWidget *parent = nullptr);
25
26private:
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();
39private slots:
40 // void onModifyClicked();
41 void onTimerTick();
42};
43#endif // MAINWINDOW_H
Definition mainwindow.h:19
MainWindow(QWidget *parent=nullptr)
Definition mainwindow.cpp:6
~MainWindow()
Definition mainwindow.cpp:44
Definition mainwindow.h:13