格式修改

This commit is contained in:
zhouxiali 2021-09-06 14:01:07 +08:00
parent efc853119a
commit 597a2111a5
2 changed files with 15 additions and 15 deletions

View File

@ -55,62 +55,62 @@ void DetailPage::initUI() {
forgetNetBox = new QCheckBox(this);
layout = new QVBoxLayout(this);
mDetailLayout = new QFormLayout;
mDetailLayout = new QFormLayout(this);
mSSID = new QLabel(this);
QHBoxLayout *mSSIDLayout = new QHBoxLayout;
QHBoxLayout *mSSIDLayout = new QHBoxLayout(this);
mSSIDLayout->addStretch();
mSSIDLayout->addWidget(mSSID);
mProtocol = new QLabel(this);
QHBoxLayout *mProtocolLayout = new QHBoxLayout;
QHBoxLayout *mProtocolLayout = new QHBoxLayout(this);
mProtocolLayout->addStretch();
mProtocolLayout->addWidget(mProtocol);
mSecType = new QLabel(this);
QHBoxLayout *mSecTypeLayout = new QHBoxLayout;
QHBoxLayout *mSecTypeLayout = new QHBoxLayout(this);
mSecTypeLayout->addStretch();
mSecTypeLayout->addWidget(mSecType);
mHz = new QLabel(this);
QHBoxLayout *mHzLayout = new QHBoxLayout;
QHBoxLayout *mHzLayout = new QHBoxLayout(this);
mHzLayout->addStretch();
mHzLayout->addWidget(mHz);
mChan = new QLabel(this);
QHBoxLayout *mChanLayout = new QHBoxLayout;
QHBoxLayout *mChanLayout = new QHBoxLayout(this);
mChanLayout->addStretch();
mChanLayout->addWidget(mChan);
mBandWidth = new QLabel(this);
QHBoxLayout *mBandWidthLayout = new QHBoxLayout;
QHBoxLayout *mBandWidthLayout = new QHBoxLayout(this);
mBandWidthLayout->addStretch();
mBandWidthLayout->addWidget(mBandWidth);
mIPV4 = new QLabel(this);
QHBoxLayout *mIPV4Layout = new QHBoxLayout;
QHBoxLayout *mIPV4Layout = new QHBoxLayout(this);
mIPV4Layout->addStretch();
mIPV4Layout->addWidget(mIPV4);
mIPV4Dns = new QLabel(this);
QHBoxLayout *mIPV4DnsLayout = new QHBoxLayout;
QHBoxLayout *mIPV4DnsLayout = new QHBoxLayout(this);
mIPV4DnsLayout->addStretch();
mIPV4DnsLayout->addWidget(mIPV4Dns);
mIPV6 = new QLabel(this);
QHBoxLayout *mIPV6Layout = new QHBoxLayout;
QHBoxLayout *mIPV6Layout = new QHBoxLayout(this);
mIPV6Layout->addStretch();
mIPV6Layout->addWidget(mIPV6);
mMac = new QLabel(this);
QHBoxLayout *mMacLayout = new QHBoxLayout;
QHBoxLayout *mMacLayout = new QHBoxLayout(this);
mMacLayout->addStretch();
mMacLayout->addWidget(mMac);
autoConnect = new QLabel(this);
autoConnect->setText(tr("Auto Connection"));
mAutoLayout = new QHBoxLayout;
mAutoLayout = new QHBoxLayout(this);
QSpacerItem *horizontalSpacer;
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

View File

@ -295,8 +295,8 @@ void NetDetail::getConInfo(QList<ConInfo>& qlConInfo)
ConInfo conInfo;
KyConnectSetting connetSetting;
KyWirelessNetItem kyWirelessNetItem;
KyWirelessNetResource *m_resource = new KyWirelessNetResource;
KyConnectResourse *kyConnectResourse = new KyConnectResourse;
KyWirelessNetResource *m_resource = new KyWirelessNetResource(this);
KyConnectResourse *kyConnectResourse = new KyConnectResourse(this);
QString deviceName;
QString hardAddress;
@ -335,7 +335,7 @@ void NetDetail::getConInfo(QList<ConInfo>& qlConInfo)
if (isWlan && isActive) {
conInfo.strConType = "802-11-wireless";
KyActiveConnectResourse *activeResourse = new KyActiveConnectResourse;
KyActiveConnectResourse *activeResourse = new KyActiveConnectResourse(this);
QString ipv4,ipv6;
QList<QHostAddress> ipv4Dns,ipv6Dns;
activeResourse->getActiveConnectIpInfo(m_uuid,ipv4,ipv6);