hlp:桂林国际齿轮泵代码
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "DialogAuthorization.h"
|
||||
#include "ui_dialogauthorization.h"
|
||||
|
||||
DialogAuthorization::DialogAuthorization(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DialogAuthorization)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowTitle(tr("输入密码"));
|
||||
this->setFixedSize(this->geometry().width(),this->geometry().height());
|
||||
ui->lineEditAuth->setEchoMode(QLineEdit::Password); // 密码不回显
|
||||
|
||||
}
|
||||
|
||||
DialogAuthorization::~DialogAuthorization()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
QString DialogAuthorization::getAuth(){
|
||||
return ui->lineEditAuth->text();
|
||||
}
|
||||
|
||||
void DialogAuthorization::clearAuth(){
|
||||
ui->lineEditAuth->setText(tr(""));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user