Merge branch '2309-0717' into 'yhkylin/v101'
fix bug 182329 182738 移动热点数据埋点问题 See merge request kylinos-src/kylin-nm!220
This commit is contained in:
commit
c825182a5e
|
@ -116,10 +116,15 @@ MobileHotspotWidget::MobileHotspotWidget(QWidget *parent) : QWidget(parent)
|
|||
connect(m_switchBtn, &KSwitchButton::stateChanged, this, &MobileHotspotWidget::setUiEnabled);
|
||||
connect(m_interfaceComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &MobileHotspotWidget::onInterfaceChanged);
|
||||
connect(m_interfaceComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [=]() {
|
||||
UkccCommon::buriedSettings("MobileHotspot", "select", QString("Net card"));
|
||||
UkccCommon::buriedSettings("MobileHotspot", "Net card", QString("select"), m_interfaceComboBox->currentText());
|
||||
m_interfaceName = m_interfaceComboBox->currentText();
|
||||
updateBandCombox();
|
||||
});
|
||||
connect(m_freqBandComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), [=](){
|
||||
if (m_isUserSelect && !m_freqBandComboBox->currentText().isEmpty()) {
|
||||
UkccCommon::buriedSettings("MobileHotspot", "Frequency band", QString("select"), m_freqBandComboBox->currentText());
|
||||
}
|
||||
});
|
||||
onInterfaceChanged();
|
||||
|
||||
#ifdef HOTSPOT_CONTROL
|
||||
|
@ -470,11 +475,9 @@ void MobileHotspotWidget::getApInfo()
|
|||
}
|
||||
int i = m_freqBandComboBox->findText(apInfo.at(5));
|
||||
if (i >= 0) {
|
||||
disconnect(m_freqBandComboBox);
|
||||
m_isUserSelect = false;
|
||||
m_freqBandComboBox->setCurrentIndex(i);
|
||||
connect(m_freqBandComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), [=](){
|
||||
UkccCommon::buriedSettings("MobileHotspot", "Frequency band", QString("select"), m_freqBandComboBox->currentText());
|
||||
});
|
||||
m_isUserSelect = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -732,11 +735,9 @@ void MobileHotspotWidget::onHotspotActivated(QString devName, QString ssid, QStr
|
|||
updateBandCombox();
|
||||
index = m_freqBandComboBox->findText(info.at(1));
|
||||
if (index >= 0) {
|
||||
disconnect(m_freqBandComboBox);
|
||||
m_isUserSelect = false;
|
||||
m_freqBandComboBox->setCurrentIndex(index);
|
||||
connect(m_freqBandComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), [=](){
|
||||
UkccCommon::buriedSettings("MobileHotspot", "Frequency band", QString("select"), m_freqBandComboBox->currentText());
|
||||
});
|
||||
m_isUserSelect = true;
|
||||
}
|
||||
m_uuid = uuid;
|
||||
} else {
|
||||
|
@ -816,7 +817,7 @@ void MobileHotspotWidget::updateBandCombox()
|
|||
setWidgetHidden(true);
|
||||
return;
|
||||
}
|
||||
disconnect(m_freqBandComboBox);
|
||||
m_isUserSelect = false;
|
||||
QMap<QString, int> devCapMap = capReply.value();
|
||||
if (devCapMap[m_interfaceName] & 0x02) {
|
||||
m_freqBandComboBox->addItem("2.4GHz");
|
||||
|
@ -828,9 +829,7 @@ void MobileHotspotWidget::updateBandCombox()
|
|||
if (index >= 0) {
|
||||
m_freqBandComboBox->setCurrentIndex(index);
|
||||
}
|
||||
connect(m_freqBandComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), [=](){
|
||||
UkccCommon::buriedSettings("MobileHotspot", "Frequency band", QString("select"), m_freqBandComboBox->currentText());
|
||||
});
|
||||
m_isUserSelect = true;
|
||||
}
|
||||
|
||||
QFrame* MobileHotspotWidget::myLine()
|
||||
|
|
|
@ -144,6 +144,8 @@ private:
|
|||
void initConnectDevPage();
|
||||
void initBlackListPage();
|
||||
|
||||
bool m_isUserSelect = true; //是否用户操作
|
||||
|
||||
signals:
|
||||
|
||||
private slots:
|
||||
|
|
Loading…
Reference in New Issue