-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
55 lines (40 loc) · 951 Bytes
/
mainwindow.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 MAINWINDOW_H
#define MAINWINDOW_H
#include <QWidget>
#include <QMainWindow>
#include <QSqlQueryModel>
#include "database.h"
#include "loginning.h"
#include "maindatabase.h"
#include "usersediditing.h"
#include "deleteuserfromdb.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QWidget
{
Q_OBJECT
signals:
void showMainWindow();
public:
explicit MainWindow(QWidget *parent = 0);
virtual ~MainWindow();
private slots:
void on_exitPushButton_clicked();
void on_addNewUserPushButton_clicked();
void on_refreshPushButton_clicked();
void on_deletePushButton_clicked();
private:
Ui::MainWindow *ui;
loginning *loginWindow;
UsersEdiditing *userEdit;
deleteUserFromDB *deleteUser;
DataBase *db;
QSqlQueryModel *modelMain;
public:
void refreshWindow();
private:
void setupMainModel(const QStringList &headers);
void createUI();
};
#endif // MAINWINDOW_H