-
Notifications
You must be signed in to change notification settings - Fork 1
/
myprofile.cpp
37 lines (34 loc) · 1005 Bytes
/
myprofile.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
#include "myprofile.h"
#include "homepage.h"
#include "ui_myprofile.h"
#include"login.h"
#include"stdafx.h"
MyProfile::MyProfile(QWidget *parent)
: QDialog(parent)
, ui(new Ui::MyProfile)
{
ui->setupUi(this);
}
MyProfile::~MyProfile()
{
delete ui;
}
void MyProfile::DisplayData(){
string firstname=Adminx::users[Login::UserID].getFirstName();
string lastname=Adminx::users[Login::UserID].getLastName();
string username=Adminx::users[Login::UserID].getUsername();
string password=Adminx::users[Login::UserID].getPassword();
string email=Adminx::users[Login::UserID].getEmail();
ui->label_3->setText(username.c_str());
ui->label_5->setText(password.c_str());
ui->label_7->setText(email.c_str());
ui->label_9->setText(firstname.c_str());
ui->label_11->setText(lastname.c_str());
qDebug()<<firstname;
}
void MyProfile::on_pushButton_clicked()
{
hide();
HomePage*H=new HomePage(this);
H->show();
}