-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdepartment.h
48 lines (34 loc) · 822 Bytes
/
department.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
#ifndef DEPARTMENT_H
#define DEPARTMENT_H
#include <QMainWindow>
#include <QSqlRelationalTableModel>
namespace Ui {
class department;
}
class MainWindow;
class db_connection;
class department : public QMainWindow
{
Q_OBJECT
public:
explicit department(QWidget *parent = nullptr);
~department();
void refreshTable();
private slots:
void on_back_clicked();
void on_add_btn_2_clicked();
void on_save_btn_clicked();
void on_update_btn_clicked();
void on_search_btn_2_clicked();
void on_delete_btn_clicked();
private:
Ui::department *ui;
MainWindow* mw;
db_connection* conn;
QSqlRelationalTableModel *model;
QString instractorsCounter;
QString departementsCounter;
QString episodesCounter;
QString subjectsCounter;
};
#endif // DEPARTMENT_H