[new] 新增正则表达式和管理员密码输入

This commit is contained in:
xueyan hu
2021-12-20 18:08:32 +08:00
parent 6cf1a1b556
commit aefd4cd367
18 changed files with 629 additions and 779 deletions

View 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;
}