微调登录对话框
This commit is contained in:
parent
d82449b736
commit
55919e66fa
|
@ -7,6 +7,8 @@ Dialog_Admin::Dialog_Admin(const QString& password, QWidget *parent)
|
||||||
, ui(new Ui::Dialog_Admin)
|
, ui(new Ui::Dialog_Admin)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
|
||||||
|
|
||||||
ui->lineEdit->setPlaceholderText(tr("Type password"));
|
ui->lineEdit->setPlaceholderText(tr("Type password"));
|
||||||
ui->lineEdit->setEchoMode(QLineEdit::Password);
|
ui->lineEdit->setEchoMode(QLineEdit::Password);
|
||||||
ui->lineEdit->setMaxLength(20);
|
ui->lineEdit->setMaxLength(20);
|
||||||
|
|
Loading…
Reference in New Issue