This commit is contained in:
ksn 2021-09-26 16:11:52 +08:00
parent d89a0dce3b
commit 0d994d021c
5 changed files with 13 additions and 6 deletions

6
debian/files vendored
View File

@ -1,3 +1,3 @@
kylin-nm-dbgsym_3.0.1-1kylin54_amd64.ddeb debug optional automatic=yes
kylin-nm_3.0.1-1kylin54_amd64.buildinfo utils optional
kylin-nm_3.0.1-1kylin54_amd64.deb utils optional
kylin-nm-dbgsym_3.0.1-1kylin54_arm64.ddeb debug optional automatic=yes
kylin-nm_3.0.1-1kylin54_arm64.buildinfo utils optional
kylin-nm_3.0.1-1kylin54_arm64.deb utils optional

View File

@ -28,7 +28,6 @@ LanPage::LanPage(QWidget *parent) : TabPage(parent)
initUI();
initNetSwitch();
initDeviceCombox();
initList(m_deviceName);
connect(m_activeResourse, &KyActiveConnectResourse::stateChangeReason, this, &LanPage::updateLanlist);
@ -392,6 +391,7 @@ void LanPage::addNewItem(KyConnectItem *itemData, QListWidget *listWidget)
void LanPage::initList(QString m_deviceName) //程序拉起,初始化显示
{
qDebug() << "initList";
m_activatedLanListWidget->clear();
m_inactivatedLanListWidget->clear();
m_activeMap.clear();

View File

@ -119,6 +119,9 @@ void WlanPage::initConnections()
connect(m_resource, &KyWirelessNetResource::wifiNetworkRemove, this, &WlanPage::onWlanRemoved);
connect(m_resource, &KyWirelessNetResource::wifiNetworkRemove, this, &WlanPage::wlanRemove);
connect(m_resource, &KyWirelessNetResource::signalStrengthChange, this, &WlanPage::signalStrengthChange);
// connect(m_resource, &KyWirelessNetResource::signalStrengthChange, this, &WlanPage::onsignalStrengthChange);
connect(m_resource, &KyWirelessNetResource::secuTypeChange, this, &WlanPage::secuTypeChange);
// connect(m_resource, &KyWirelessNetResource::wifiNetworkUpdate, this, &WlanPage::onWlanUpdated);
@ -324,7 +327,7 @@ void WlanPage::onWlanAdded(QString interface, KyWirelessNetItem &item)
QListWidgetItem *wlanItem = new QListWidgetItem(m_inactivatedNetListWidget);
wlanItem->setSizeHint(QSize(m_inactivatedNetListWidget->width(), wlanItemWidget->height()));
m_inactivatedNetListWidget->setItemWidget(wlanItem, wlanItemWidget);
// m_inactivatedNetListWidget->insertItem(N, wlanItem);
// m_inactivatedNetListWidget->insertItem(N, wlanItem);
m_inactivatedNetListWidget->addItem(wlanItem); //ZJP_TODO 目前会添加到列表尾部
m_inactivatedNetListWidget->setFixedHeight(m_inactivatedNetListWidget->height() + wlanItemWidget->height() + NET_LIST_SPACING);
m_inactivatedWlanListAreaCentralWidget->setFixedHeight(m_inactivatedNetListWidget->height() + m_hiddenWlanLabel->height());

View File

@ -121,7 +121,11 @@ private slots:
void onHiddenWlanClicked();
void showControlCenter();
void onWifiEnabledChanged(bool isWifiOn);
void onRefreshIconTimer();
// void onsignalStrengthChange(QString, QString, int);
};
#endif // WLANPAGE_H

View File

@ -86,7 +86,7 @@ int main(int argc, char *argv[])
// QApplication a(argc, argv);
QString id = QString("kylin-nm"+ QLatin1String(getenv("DISPLAY")));
QtSingleApplication a(id, argc, argv);
qInstallMessageHandler(messageOutput);
// qInstallMessageHandler(messageOutput);
if (a.isRunning()) {
auto connection = QDBusConnection::sessionBus();
QDBusInterface iface("com.kylin.network",