-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.h
37 lines (31 loc) · 895 Bytes
/
signup.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
#ifndef SIGNUP_H
#define SIGNUP_H
#include <QMainWindow>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
#include <QKeyEvent>
namespace Ui {
class SignUp;
}
class SignUp : public QMainWindow
{
Q_OBJECT
public:
explicit SignUp(QWidget *parent = nullptr);
~SignUp();
private slots:
bool checkEmpty(const QString &uName,const QString &email, const QString &pass, const QString &cPass);
bool eventFilter(QObject *watched,QEvent *event)override;
bool isValidEmail(const QString &email);
void on_signUpButton_clicked();
void openLogin();
bool matchPassword(const QString &pass, const QString &cPass);
void storeData(const QString &uname, const QString &email, const QString &pass);
void keyPressEvent(QKeyEvent *event);
private:
Ui::SignUp *ui;
QString userName;
QString email;
QString password;
};
#endif // SIGNUP_H