-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthWindow.cpp
More file actions
52 lines (43 loc) · 926 Bytes
/
authWindow.cpp
File metadata and controls
52 lines (43 loc) · 926 Bytes
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
#include "authWindow.h"
#include "ui_authWindow.h"
AuthWindow::AuthWindow(QWidget *parent) :
QWidget(parent),
ui(new Ui::AuthWindow)
{
ui->setupUi(this);
}
AuthWindow::~AuthWindow()
{
delete ui;
}
void AuthWindow::on_nameLineEdit_textEdited(const QString &arg1)
{
AuthWindow::m_username = arg1;
}
void AuthWindow::on_passwordLineEdit_textEdited(const QString &arg1)
{
AuthWindow::m_userpass = arg1;
}
void AuthWindow::on_loginPushButton_clicked()
{
emit login_button_clicked();
}
void AuthWindow::on_guestPushButton_clicked()
{
emit guest_button_clicked();
}
QString AuthWindow::getLogin()
{
return AuthWindow::m_username;
}
QString AuthWindow::getPass()
{
return AuthWindow::m_userpass;
}
void AuthWindow::clearInfo()
{
this->ui->nameLineEdit->clear();
this->ui->passwordLineEdit->clear();
m_username = "";
m_userpass = "";
}