代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。