4 Star 0 Fork 4

src-openEuler/kiran-qt5-integration

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0020-fix-style-Fix-the-failure-of-dynamic-theme-switching.patch 989 Bytes
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/kiran-qt5-integration.git
git@gitee.com:src-openeuler/kiran-qt5-integration.git
src-openeuler
kiran-qt5-integration
kiran-qt5-integration
master

搜索帮助