-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclassrooms.h
55 lines (36 loc) · 972 Bytes
/
classrooms.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef CLASSROOMS_H
#define CLASSROOMS_H
#include "qsqlrelationaltablemodel.h"
#include <QDialog>
namespace Ui {
class classrooms;
}
class db_connection;
class MainWindow;
class classrooms : public QDialog
{
Q_OBJECT
public:
explicit classrooms(QWidget *parent = nullptr);
~classrooms();
void refreshTable(const QString &); //customize refresh with filter data
MainWindow* mw;
private slots:
void on_back_clicked();
void on_add_btn_clicked();
void on_delete_btn_clicked();
void on_update_btn_clicked();
void on_save_btn_2_clicked();
void on_search_btn_clicked();
void on_comboBox_currentTextChanged(const QString &arg1);
private:
Ui::classrooms *ui;
db_connection* conn;
QString sallesCounter;
QString amphisCounter;
QString departmentsCounter;
QString classroomsCounter;
QString averageClassroomsPerDepartment;
QSqlRelationalTableModel* model;
};
#endif // CLASSROOMS_H