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