Files
2026-08-25 10:37:57 +08:00

27 lines
625 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(""));
}