From 484e576ee81e70d084363003a1cd21d6a2769bc3 Mon Sep 17 00:00:00 2001 From: Yuanyuan Zhang Date: Tue, 5 Jul 2022 06:40:32 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E6=95=88=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/netdetails/ipv4page.cpp | 5 ----- src/frontend/netdetails/ipv6page.cpp | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/frontend/netdetails/ipv4page.cpp b/src/frontend/netdetails/ipv4page.cpp index 3e8c7e88..1ef0410e 100644 --- a/src/frontend/netdetails/ipv4page.cpp +++ b/src/frontend/netdetails/ipv4page.cpp @@ -104,9 +104,6 @@ void Ipv4Page::initUI() { netMaskEdit->setValidator(new QRegExpValidator(rx, this)); firstDnsEdit->setValidator(new QRegExpValidator(rx, this)); secondDnsEdit->setValidator(new QRegExpValidator(rx, this)); - - ipv4addressEdit->installEventFilter(this); - netMaskEdit->installEventFilter(this); } void Ipv4Page::initComponent() { @@ -265,7 +262,6 @@ void Ipv4Page::onAddressTextChanged() { if (!getTextEditState(ipv4addressEdit->text())) { m_addressHintLabel->setText(tr("Invalid address")); - qDebug() << "ipv4address invalid"; } else { m_addressHintLabel->clear(); } @@ -275,7 +271,6 @@ void Ipv4Page::onNetMaskTextChanged() { if (!netMaskIsValide(netMaskEdit->text())) { m_maskHintLabel->setText(tr("Invalid subnet mask")); - qDebug() << "ipv4 netMask invalid"; } else { m_maskHintLabel->clear(); } diff --git a/src/frontend/netdetails/ipv6page.cpp b/src/frontend/netdetails/ipv6page.cpp index 24556387..05838c40 100644 --- a/src/frontend/netdetails/ipv6page.cpp +++ b/src/frontend/netdetails/ipv6page.cpp @@ -177,9 +177,6 @@ void Ipv6Page::initUI() { QRegExp prefix_rx("\\b(?:(?:12[0-8]|1[0-1][0-9]|^[1-9][0-9]?$)\\.){3}(?:12[0-8]|1[0-1][0-9]|^[1-9][0-9]?$)\\b"); lengthEdit->setValidator(new QRegExpValidator(prefix_rx,this)); - - ipv6AddressEdit->installEventFilter(this); - gateWayEdit->installEventFilter(this); } void Ipv6Page::initComponent() { @@ -244,7 +241,6 @@ void Ipv6Page::onAddressTextChanged() { if (!getIpv6EditState(ipv6AddressEdit->text())) { m_addressHintLabel->setText(tr("Invalid address")); - qDebug() << "ipv6address invalid"; } else { m_addressHintLabel->clear(); } @@ -254,7 +250,6 @@ void Ipv6Page::onGatewayTextChanged() { if (!getIpv6EditState(gateWayEdit->text())) { m_gateWayHintLabel->setText(tr("Invalid gateway")); - qDebug() << "ipv6 gateway invalid"; } else { m_gateWayHintLabel->clear(); }