-
Notifications
You must be signed in to change notification settings - Fork 1
/
LoginForm.h
59 lines (45 loc) · 995 Bytes
/
LoginForm.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
56
57
58
59
#ifndef LOGINFORM_H
#define LOGINFORM_H
#include <QWidget>
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QSqlRecord>
#include <QSqlQuery>
#include <QDebug>
#include <QTimer>
#include <QSqlError>
#include "MsgBoxEx.h"
#include "MainWindow.h"
#include "LoginSetForm.h"
#include "Config.h"
namespace Ui {
class LoginForm;
}
class LoginForm : public QWidget
{
Q_OBJECT
public:
explicit LoginForm(QWidget *parent = nullptr);
~LoginForm();
private slots:
void on_pushButton_login_clicked();
void on_pushButton_exit_clicked();
void onBtnOkClicked();
void onBtnCancelClicked();
void onLoginMainWindow();
void onSetClicked();
void onEyeToggled(bool checked);
void onSetFormClosed();
signals:
void closeLoginSetForm();
private:
Ui::LoginForm *ui;
QString m_userName;
QString m_userPasswd;
int m_userLevel;
LoginSetForm *m_loginSetForm;
private:
bool linkdb();
void init();
};
#endif // LOGINFORM_H