-
Notifications
You must be signed in to change notification settings - Fork 0
/
Initial.cpp
53 lines (34 loc) · 1006 Bytes
/
Initial.cpp
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
#include "Initial.h"
#include "login_user.h"
#include "login_admin.h"
#include "signup.h"
#include "Main.h"
Initial::Initial(QWidget *parent)
: QMainWindow(parent), ui(new Ui::InitialClass)
{
ui->setupUi(this);
//reset any logged in user
loggedInUserID = "";
connect(ui->login_user, &QPushButton::clicked, this, &Initial::login_user_button_clicked);
connect(ui->login_admin, &QPushButton::clicked, this, &Initial::login_admin_button_clicked);
connect(ui->signup, &QPushButton::clicked, this, &Initial::signup_button_clicked);
}
Initial::~Initial()
{
delete ui;
}
void Initial::login_user_button_clicked() {
Login_User* login_user = new Login_User();
login_user->show();
this->close();
}
void Initial::login_admin_button_clicked() {
Login_Admin* login_admin = new Login_Admin();
login_admin->show();
this->close();
}
void Initial::signup_button_clicked() {
Signup* signup = new Signup();
signup->show();
this->close();
}