Merge branch 'plugin-ui' into 'dbus-interface'
删除无效日志代码 See merge request kylin-desktop/kylin-nm!650
This commit is contained in:
commit
7b1c78a22a
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue