You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
636 B
44 lines
636 B
#include "passwd.h" |
|
#include "ui_passwd.h" |
|
#include <QDebug> |
|
passwd::passwd(QWidget *parent) : |
|
QDialog(parent), |
|
ui(new Ui::passwd) |
|
{ |
|
ui->setupUi(this); |
|
} |
|
|
|
passwd::~passwd() |
|
{ |
|
delete ui; |
|
} |
|
|
|
void passwd::on_buttonBox_accepted() |
|
{ |
|
if(ui->lineEdit->text() != "zxrc"){ |
|
qDebug()<<__FILE__<<__LINE__; |
|
return; |
|
} |
|
else{ |
|
this->accept(); |
|
} |
|
} |
|
|
|
|
|
void passwd::on_pushButton_clicked() |
|
{ |
|
if(ui->lineEdit->text() != "zxrc"){ |
|
setWindowTitle(u8"密码错误请重试"); |
|
|
|
} |
|
else{ |
|
this->accept(); |
|
} |
|
} |
|
|
|
|
|
void passwd::on_pushButton_2_clicked() |
|
{ |
|
this->reject(); |
|
} |
|
|
|
|