代码拉取完成,页面将自动刷新
From c03e27fe1a775d30a61c1518fd93c22532e74dd4 Mon Sep 17 00:00:00 2001
From: liuxinhao <liuxinhao@kylinsec.com.cn>
Date: Mon, 14 Oct 2024 20:40:31 +0800
Subject: [PATCH] fix(style): Fix the failure of dynamic theme switching in low
version of Qt.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复由于Style Polish中再次更改app pal导致AA_SetPalette标记打上,导致低版本Qt动态切换主题失效
Closes #51353
---
style/src/style.cpp | 4 ----
1 file changed, 4 deletions(-)
diff --git a/style/src/style.cpp b/style/src/style.cpp
index 000fe11..062a032 100644
--- a/style/src/style.cpp
+++ b/style/src/style.cpp
@@ -651,10 +651,6 @@ void Style::polish(QWidget *widget)
void Style::polish(QApplication *app)
{
QProxyStyle::polish(app);
-
- QPalette palette;
- StylePalette::instance()->polishPalette(&palette);
- QApplication::setPalette(palette);
}
void Style::polish(QPalette &palette)
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。