4 Star 0 Fork 4

src-openEuler/kiran-qt5-integration

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0013-feature-adapt-Modified-some-code-to-adapt-to-KY3.3-6.patch 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
SkyzcYou 提交于 2024-04-15 11:47 . Add patch for 3.6.1
From 0d7c13ac7bd0dd7531def39e706fa38b71598279 Mon Sep 17 00:00:00 2001
From: yanglan <yanglan@kylinsec.com.cn>
Date: Wed, 3 Jan 2024 18:08:30 +0800
Subject: [PATCH] feature(adapt): Modified some code to adapt to KY3.3-6-PG's
environment
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修改代码适配KY3.3-6-PG的环境
Signed-off-by: yanglan <yanglan@kylinsec.com.cn>
---
style-helper/src/font-size-manager-private.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/style-helper/src/font-size-manager-private.h b/style-helper/src/font-size-manager-private.h
index eccf04b..3c018ba 100644
--- a/style-helper/src/font-size-manager-private.h
+++ b/style-helper/src/font-size-manager-private.h
@@ -25,7 +25,13 @@ public:
void init()
{
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
connect(qGuiApp, &QGuiApplication::fontChanged, this, &FontSizeManagerPrivate::handleGuiAppFontChanged);
+#else
+ connect(qGuiApp, &QGuiApplication::fontDatabaseChanged, [this](){
+ this->handleGuiAppFontChanged(qGuiApp->font());
+ });
+#endif
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
connect(&m_destorySignalMapper, &QSignalMapper::mappedWidget, this, &FontSizeManagerPrivate::handleBindWidgetDestroyed);
#else
@@ -71,4 +77,4 @@ private:
QSignalMapper m_destorySignalMapper;
};
-} // namespace Kiran
\ No newline at end of file
+} // namespace Kiran
--
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

搜索帮助