27 lines
651 B
C++
27 lines
651 B
C++
#include "dialogmodifypasswd.h"
|
|
#include "ui_dialogmodifypasswd.h"
|
|
|
|
Dialogmodifypasswd::Dialogmodifypasswd(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::Dialogmodifypasswd)
|
|
{
|
|
ui->setupUi(this);
|
|
this->setWindowTitle(tr("密码授权"));
|
|
this->setFixedSize(this->geometry().width(),this->geometry().height());
|
|
ui->lineEdit->setEchoMode(QLineEdit::Password); // 密码不回显
|
|
}
|
|
|
|
Dialogmodifypasswd::~Dialogmodifypasswd()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
QString Dialogmodifypasswd::getModPasswd(){
|
|
return ui->lineEdit->text();
|
|
}
|
|
|
|
void Dialogmodifypasswd::clearAuth(){
|
|
ui->lineEdit->setText(tr(""));
|
|
|
|
}
|