fix(托盘): 网络属性弹窗不显示图标于任务栏(bug184606)

This commit is contained in:
zhangyuanyuan1 2023-07-27 18:26:03 +08:00
parent c5d757d832
commit ec750fde0a
3 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,9 @@
#include <QApplication>
#include <QDesktopWidget>
#include "xatom-helper.h"
#include "kwindowsystem.h"
#include "kwindowsystem_export.h"
#define MAIN_SIZE_EXPAND 480,580
#define MAIN_SIZE_NARROW 480,484
#define SCROAREA_WIDTH 480
@ -51,6 +54,7 @@ EnterpriseWlanDialog::EnterpriseWlanDialog(KyWirelessNetItem &wirelessNetItem, Q
this->setWindowFlag(Qt::Window);
// this->setWindowTitle(tr("Connect Enterprise WLAN"));
this->setWindowIcon(QIcon::fromTheme("kylin-network"));
KWindowSystem::setState(this->winId(), NET::SkipTaskbar | NET::SkipPager);
m_wirelessNetItem = wirelessNetItem;
m_deviceName = device;

View File

@ -20,6 +20,8 @@
#include "joinhiddenwifipage.h"
#include <QApplication>
#include "kwindowsystem.h"
#include "kwindowsystem_export.h"
#define THEME_SCHAME "org.ukui.style"
#define COLOR_THEME "styleName"
@ -48,6 +50,7 @@ JoinHiddenWiFiPage::JoinHiddenWiFiPage(QString devName, KDialog *parent)
initComponent();
setAttribute(Qt::WA_DeleteOnClose);
KWindowSystem::setState(this->winId(), NET::SkipTaskbar | NET::SkipPager);
setJoinBtnEnable();
}

View File

@ -32,6 +32,8 @@
#include <QScrollBar>
#include "windowmanager/windowmanager.h"
#include "kwindowsystem.h"
#include "kwindowsystem_export.h"
#define WINDOW_WIDTH 520
#define WINDOW_HEIGHT 602
@ -145,6 +147,7 @@ NetDetail::NetDetail(QString interface, QString name, QString uuid, bool isActiv
//#else
// this->setWindowFlags(Qt::Dialog /*| Qt::FramelessWindowHint*/);
this->setWindowFlag(Qt::Window);
KWindowSystem::setState(this->winId(), NET::SkipTaskbar | NET::SkipPager);
//#endif
// this->setProperty("useStyleWindowManager", false); //禁用拖动
// setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint );