[new] 新增正则表达式和管理员密码输入
This commit is contained in:
37
src/network/getadminpsw.cpp
Normal file
37
src/network/getadminpsw.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// Created by Krad on 2021/11/11.
|
||||
//
|
||||
|
||||
#include <QFormLayout>
|
||||
#include <QLabel>
|
||||
#include <QtWidgets/QLineEdit>
|
||||
#include "getadminpsw.h"
|
||||
#include "device/networkmanager.h"
|
||||
|
||||
GetAdminPsw::GetAdminPsw(QWidget* parent, Qt::WindowFlags f) : GUIFormBaseDialog(parent, f) {
|
||||
|
||||
setWindowModality(Qt::WindowModal);
|
||||
QFormLayout* form = new QFormLayout(formWidget);
|
||||
QString value1 = QString("Admin Password");
|
||||
_psw = new QLineEdit(this);
|
||||
_psw->setEchoMode(QLineEdit::Password);
|
||||
form->addRow(value1, _psw);
|
||||
|
||||
lbl_error = new QLabel(this);
|
||||
lbl_error->setObjectName("warn");
|
||||
form->addRow("", lbl_error);
|
||||
|
||||
}
|
||||
|
||||
GetAdminPsw::~GetAdminPsw() {
|
||||
|
||||
}
|
||||
|
||||
QString GetAdminPsw::getPsw()const
|
||||
{
|
||||
return _psw->text();
|
||||
}
|
||||
|
||||
bool GetAdminPsw::updateReferenceData() {
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user