fix bug 125714

This commit is contained in:
jzxc95 2022-10-21 18:54:32 +08:00
parent 6e6dd32659
commit 6cb900c3d5
4 changed files with 42 additions and 27 deletions

42
debian/changelog vendored
View File

@ -1,14 +1,40 @@
kylin-nm (3.20.1.6-ok10) v101; urgency=medium kylin-nm (3.20.1.9) v101; urgency=medium
* BUG号 * BUG号:
-#145498 【设计】【控制面板】【平板】添加快捷键弹窗实现不符合设计规范 -#125714 【UKUI 3.20 走查】【网络】快捷键支持不完整
* 需求号: * 需求号:
* 其他改动: * 其他改动:
* 影响域:控制面板 代理 * 影响域:win+k快捷键 强调色适配
-- zhaoshixu <zhaoshixu@kylinos.cn> Wed, 09 Nov 2022 17:41:17 +0800 -- zhaoshixu <zhaoshixu@kylinos.cn> Fri, 21 Oct 2022 18:51:58 +0800
kylin-nm (3.20.1.6-ok9) v101; urgency=medium kylin-nm (3.20.1.8) v101; urgency=medium
* BUG号:
-#144126 【设计】【网络连接】网络属性界面寻光主题下显示外观不符
* 需求号:无
* 其他改动:
* 影响域主题深浅模式ui
-- zhaoshixu <zhaoshixu@kylinos.cn> Fri, 21 Oct 2022 10:55:39 +0800
kylin-nm (3.20.1.7) v101; urgency=medium
* BUG号:
-#132105 【设计】网络属性界面字体最大时显示与设计预期不符
-#140441 【rc6走查】【托盘】【网络】弹窗页tab控件未居中对齐
-#141204 【rc6走查】【托盘】【网络】网络项间距待调整
-#143412 【设计】【控制面板】有线、无线网络边距布局未按规范
-#143422 【设计】【控制面板】移动热点通知弹窗调用图标错误
-#143023 【设计】【控制面板】有线网络连接属性界面无删除此网络功能
* 需求号:无
* 其他改动:
任务-#112767 应用代理功能开发
* 影响域属性页面UI 消息通知 控制面板应用代理
-- zhaoshixu <zhaoshixu@kylinos.cn> Thu, 13 Oct 2022 16:27:57 +0800
kylin-nm (3.20.1.6) v101; urgency=medium
* BUG号 * BUG号
- #145719 【VPN】在任务栏虚拟连接界面点击连接VPN任务栏网络图标消失后重新显示概率性不恢复显示 - #145719 【VPN】在任务栏虚拟连接界面点击连接VPN任务栏网络图标消失后重新显示概率性不恢复显示

View File

@ -139,7 +139,6 @@ void MainWindow::firstlyStart()
initDbusConnnect(); initDbusConnnect();
initWindowTheme(); initWindowTheme();
initTrayIcon(); initTrayIcon();
installEventFilter(this);
m_secondaryStartTimer = new QTimer(this); m_secondaryStartTimer = new QTimer(this);
connect(m_secondaryStartTimer, &QTimer::timeout, this, [ = ]() { connect(m_secondaryStartTimer, &QTimer::timeout, this, [ = ]() {
m_secondaryStartTimer->stop(); m_secondaryStartTimer->stop();
@ -362,6 +361,13 @@ void MainWindow::initDbusConnnect()
QString("/"), QString("/"),
QString("com.kylin.statusmanager.interface"), QString("com.kylin.statusmanager.interface"),
QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool))); QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool)));
connect(KWindowSystem::self(), &KWindowSystem::activeWindowChanged, this,[&](WId activeWindowId){
if (activeWindowId != this->winId()) {
hideMainwindow();
}
});
} }
/** /**
@ -706,22 +712,6 @@ void MainWindow::keyPressEvent(QKeyEvent *event)
return QWidget::keyPressEvent(event); return QWidget::keyPressEvent(event);
} }
/**
* @brief MainWindow::eventFilter
* @param watched
* @param event
* @return
*/
bool MainWindow::eventFilter(QObject *watched, QEvent *event)
{
if (event->type() == QEvent::ActivationChange) {
if(QApplication::activeWindow() != this) {
hideMainwindow();
}
}
return QMainWindow::eventFilter(watched,event);
}
/** /**
* @brief MainWindow::getWirelessList wifi列表dbus调用 * @brief MainWindow::getWirelessList wifi列表dbus调用
* @param map * @param map

View File

@ -140,7 +140,6 @@ public Q_SLOTS:
protected: protected:
void keyPressEvent(QKeyEvent *event); void keyPressEvent(QKeyEvent *event);
bool eventFilter(QObject *watched, QEvent *event) override;
void paintEvent(QPaintEvent *event); void paintEvent(QPaintEvent *event);
private: private:

View File

@ -53,7 +53,7 @@ RadioItemButton::RadioItemButton(QWidget *parent) : QPushButton(parent)
const QByteArray id(THEME_SCHAME); const QByteArray id(THEME_SCHAME);
if (QGSettings::isSchemaInstalled(id)) { if (QGSettings::isSchemaInstalled(id)) {
m_styleGSettings = new QGSettings(id); m_styleGSettings = new QGSettings(id, this);
connect(m_styleGSettings, &QGSettings::changed, this, [=](QString key){ connect(m_styleGSettings, &QGSettings::changed, this, [=](QString key){
if ("themeColor" == key) { if ("themeColor" == key) {
onPaletteChanged(); onPaletteChanged();