Merge branch 'plugin-ui' into 'dbus-interface'

删除无效日志代码

See merge request kylin-desktop/kylin-nm!650
This commit is contained in:
赵世旭 2022-07-05 06:40:32 +00:00
commit 7b1c78a22a
2 changed files with 0 additions and 10 deletions

View File

@ -123,9 +123,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() {
@ -284,7 +281,6 @@ void Ipv4Page::onAddressTextChanged()
{
if (!getTextEditState(ipv4addressEdit->text())) {
m_addressHintLabel->setText(tr("Invalid address"));
qDebug() << "ipv4address invalid";
} else {
m_addressHintLabel->clear();
}
@ -294,7 +290,6 @@ void Ipv4Page::onNetMaskTextChanged()
{
if (!netMaskIsValide(netMaskEdit->text())) {
m_maskHintLabel->setText(tr("Invalid subnet mask"));
qDebug() << "ipv4 netMask invalid";
} else {
m_maskHintLabel->clear();
}

View File

@ -196,9 +196,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() {
@ -263,7 +260,6 @@ void Ipv6Page::onAddressTextChanged()
{
if (!getIpv6EditState(ipv6AddressEdit->text())) {
m_addressHintLabel->setText(tr("Invalid address"));
qDebug() << "ipv6address invalid";
} else {
m_addressHintLabel->clear();
}
@ -273,7 +269,6 @@ void Ipv6Page::onGatewayTextChanged()
{
if (!getIpv6EditState(gateWayEdit->text())) {
m_gateWayHintLabel->setText(tr("Invalid gateway"));
qDebug() << "ipv6 gateway invalid";
} else {
m_gateWayHintLabel->clear();
}