-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUserForm.h
More file actions
57 lines (42 loc) · 1.08 KB
/
Copy pathUserForm.h
File metadata and controls
57 lines (42 loc) · 1.08 KB
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
56
57
#ifndef USERFORM_H
#define USERFORM_H
#include <QWidget>
#include "CustomData.h"
#include "MsgBoxEx.h"
#include <QSqlQuery>
#include <QSqlQueryModel>
#include <QSqlRecord>
namespace Ui {
class UserForm;
}
class UserForm : public QWidget
{
Q_OBJECT
public:
explicit UserForm(QString user, QString passwd, int level, QWidget *parent = nullptr);
~UserForm();
private:
void init();
void updateModel();
private slots:
void on_pushButtonChangePasswd_clicked();
void on_pushButtonChangePwdCancel_clicked();
void on_pushButtonChangePwdOk_clicked();
void on_pushButtonLogoutUser_clicked();
void onBtnOkClickedLogout();
void onBtnCancelClickedLogout();
void onClickedUserList(const QModelIndex&);
void on_pushButtonUserAdd_clicked();
void on_pushButtonUserChange_clicked();
void on_pushButtonUserDel_clicked();
void onExitProgress();
private:
Ui::UserForm *ui;
QSqlQueryModel *m_modelUser;
QString m_userName;
QString m_userPasswd;
int m_userLevel;
public:
void visibleUsersetGroup();
};
#endif // USERFORM_H