29 lines
694 B
C++
29 lines
694 B
C++
#include "DialogAuthorizationPrint.h"
|
|
#include "ui_dialogAuthorizationPrint.h"
|
|
|
|
DialogAuthorizationPrint::DialogAuthorizationPrint(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::DialogAuthorizationPrint)
|
|
{
|
|
ui->setupUi(this);
|
|
this->setWindowTitle(tr("请输入打印密码"));
|
|
this->setFixedSize(this->geometry().width(),this->geometry().height());
|
|
ui->lineEditAuth->setEchoMode(QLineEdit::Password); // 密码不回显
|
|
|
|
}
|
|
|
|
DialogAuthorizationPrint::~DialogAuthorizationPrint()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
|
|
QString DialogAuthorizationPrint::getAuth(){
|
|
return ui->lineEditAuth->text();
|
|
}
|
|
|
|
void DialogAuthorizationPrint::clearAuth(){
|
|
ui->lineEditAuth->setText(tr(""));
|
|
|
|
}
|