Change the length limit of wifi password
This commit is contained in:
parent
f1d653c8e0
commit
ad0d31bc3d
|
@ -546,24 +546,9 @@ void MainWindow::initTimer()
|
|||
//初始化已经连接网络的DNS
|
||||
void MainWindow::initActNetDNS()
|
||||
{
|
||||
// QString actLanName = "--";
|
||||
|
||||
// activecon *act = kylin_network_get_activecon_info();
|
||||
// int index = 0;
|
||||
// while (act[index].con_name != NULL) {
|
||||
// if (QString(act[index].type) == "ethernet" || QString(act[index].type) == "802-3-ethernet") {
|
||||
// actLanName = QString(act[index].con_name);
|
||||
// break;
|
||||
// }
|
||||
// index ++;
|
||||
// }
|
||||
|
||||
QList<QString> currConnNames =objKyDBus->getConnectNetName();
|
||||
|
||||
// if (actLanName != "--") {
|
||||
if (currConnNames.size() > 0) {
|
||||
// oldActLanName = actLanName;
|
||||
// objKyDBus->getLanIpDNS(actLanName, true);
|
||||
oldActLanName = currConnNames.at(0);
|
||||
objKyDBus->getLanIpDNS(currConnNames.at(1), true);
|
||||
oldDbusActLanDNS = objKyDBus->dbusActLanDNS;
|
||||
|
|
|
@ -649,7 +649,7 @@ void OneConnForm::on_lePassword_textEdited(const QString &arg1)
|
|||
{
|
||||
ui->lePassword->setStyleSheet("QLineEdit{border:2px solid rgba(28, 47, 146, 1);border-radius:4px;background:rgba(0,0,0,0.2);}");
|
||||
|
||||
if (ui->lePassword->text().size() < 5) {
|
||||
if (ui->lePassword->text().size() < 6) {
|
||||
ui->btnConnPWD->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
|
|
Loading…
Reference in New Issue