kiran-qt5-integration/0020-fix-style-Fix-the-failure-of-dynamic-theme-switching.patch

35 lines
989 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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