fix(ui): 网络菜单二级窗口无图标
Description: 网络菜单二级窗口无图标 Log: 网络菜单二级窗口无图标 Bug: https://pm.kylin.com/bug-view-230664.html
This commit is contained in:
parent
97679e86e8
commit
d6ecb7faae
|
@ -1141,6 +1141,9 @@ void MainWindow::showCreateWiredConnectWidget(const QString devName)
|
|||
netDetail->show();
|
||||
KWindowSystem::raiseWindow(netDetail->winId());
|
||||
netDetail->centerToScreen();
|
||||
kdk::WindowManager::setSkipSwitcher(netDetail->windowHandle(), true);
|
||||
kdk::WindowManager::setSkipTaskBar(netDetail->windowHandle(), true);
|
||||
kdk::WindowManager::setIconName(netDetail->windowHandle(), "kylin-network");
|
||||
}
|
||||
|
||||
void MainWindow::showAddOtherWlanWidget(QString devName)
|
||||
|
|
|
@ -34,7 +34,8 @@
|
|||
#define ITEM_HEIGHT 48
|
||||
|
||||
#define LOG_FLAG "[LanPage]"
|
||||
|
||||
#include "windowmanager/windowmanager.h"
|
||||
using namespace kdk;
|
||||
const QString EMPTY_CONNECT_UUID = "emptyconnect";
|
||||
|
||||
const QString WIRED_SWITCH = "wiredswitch";
|
||||
|
@ -1288,6 +1289,9 @@ void LanPage::showDetailPage(QString devName, QString uuid)
|
|||
netDetail->show();
|
||||
KWindowSystem::raiseWindow(netDetail->winId());
|
||||
netDetail->centerToScreen();
|
||||
kdk::WindowManager::setSkipSwitcher(netDetail->windowHandle(), true);
|
||||
kdk::WindowManager::setSkipTaskBar(netDetail->windowHandle(), true);
|
||||
kdk::WindowManager::setIconName(netDetail->windowHandle(), "kylin-network");
|
||||
|
||||
connect(netDetail, &NetDetail::detailPageClose, [&](QString deviceName, QString lanName, QString lanUuid){
|
||||
if (lanUuid.isEmpty()) {
|
||||
|
|
|
@ -1651,6 +1651,9 @@ void WlanPage::showDetailPage(QString devName, QString ssid)
|
|||
netDetail->show();
|
||||
KWindowSystem::raiseWindow(netDetail->winId());
|
||||
netDetail->centerToScreen();
|
||||
kdk::WindowManager::setSkipSwitcher(netDetail->windowHandle(), true);
|
||||
kdk::WindowManager::setSkipTaskBar(netDetail->windowHandle(), true);
|
||||
kdk::WindowManager::setIconName(netDetail->windowHandle(), "kylin-network");
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue