解决ip页面布局错位问题
This commit is contained in:
parent
4bad483bc9
commit
f581aef16a
|
@ -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);
|
||||
|
||||
|
|
|
@ -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")); //"手动"
|
||||
|
|
|
@ -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")); //"手动"
|
||||
|
|
Loading…
Reference in New Issue