Skip to content

Commit

Permalink
avatarpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefly-26710 committed Jul 8, 2024
1 parent b5c0b14 commit e2fb3ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions signinwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ void signinwin::on_signinBtn_clicked()
//测试用户
//User enrolluser("newuser@example.com","123456");
User enrolluser(IDLine->text(),accoutLine->text(),passwordLine->text());
enrolluser.avatarpath=fileroad;
if(enrolluser.enroll())
QMessageBox::information(this, "成功","注册成功");
else
Expand Down Expand Up @@ -155,6 +156,7 @@ void signinwin::on_image_clicked()
avatarArea->addWidget(avatar,0,Qt::AlignCenter);
connect(avatar,&ElaInteractiveCard::clicked,this,&signinwin::on_image_clicked);
update();
fileroad=fileName;
}
}

1 change: 1 addition & 0 deletions signinwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class signinwin:public ElaWidget
ElaLineEdit*accoutLine;
ElaLineEdit*passwordLine;
ElaLineEdit*passagainLine;
QString fileroad="";
private slots:
void on_signinBtn_clicked();
void closeEvent(QCloseEvent*Event);
Expand Down

0 comments on commit e2fb3ea

Please sign in to comment.