解决ip页面布局错位问题

This commit is contained in:
zhangyuanyuan1 2023-07-06 11:48:15 +08:00
parent 4bad483bc9
commit f581aef16a
3 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,8 @@ void CreatNetPage::initUI()
m_detailLayout->addRow(m_maskLabel, maskWidget);
m_detailLayout->addRow(m_gateWayLabel,gateWayEdit);
m_detailLayout->addRow(gateWayEmptyLabel);
m_addressLabel->setContentsMargins(0, 0, 0, LABEL_HEIGHT); //解决布局错位问题
m_maskLabel->setContentsMargins(0, 0, 0, LABEL_HEIGHT);
m_detailLayout->addRow(m_dnsWidget);

View File

@ -111,6 +111,8 @@ void Ipv4Page::initUI() {
m_detailLayout->addRow(divider);
m_detailLayout->addRow(m_dnsEmptyLabel);
m_detailLayout->addRow(m_dnsWidget);
m_addressLabel->setContentsMargins(0, 0, 0, LABEL_HEIGHT); //解决布局错位问题
m_maskLabel->setContentsMargins(0, 0, 0, LABEL_HEIGHT);
ipv4ConfigCombox->addItem(tr("Auto(DHCP)")); //"自动(DHCP)"
ipv4ConfigCombox->addItem(tr("Manual")); //"手动"

View File

@ -174,6 +174,8 @@ void Ipv6Page::initUI() {
m_detailLayout->addRow(m_subnetEmptyLabel);
m_detailLayout->addRow(m_gateWayLabel,gateWayWidget);
m_detailLayout->addRow(m_dnsWidget);
m_addressLabel->setContentsMargins(0, 0, 0, LABEL_HEIGHT); //解决布局错位问题
m_gateWayLabel->setContentsMargins(0, 0, 0, LABEL_HEIGHT);
ipv6ConfigCombox->addItem(tr("Auto(DHCP)")); //"自动(DHCP)"
ipv6ConfigCombox->addItem(tr("Manual")); //"手动"